summaryrefslogtreecommitdiff
blob: fe542341e99d629e886d3e0fa269126527045c17 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Description: Crashes if not connected to the internet.
Author: Scott Howard <showard@debian.org>
Bug-Debian: http://bugs.debian.org/626915

Index: qtiplot/qtiplot/src/core/ApplicationWindow.cpp
===================================================================
--- qtiplot.orig/qtiplot/src/core/ApplicationWindow.cpp	2012-11-07 11:14:15.021706679 -0500
+++ qtiplot/qtiplot/src/core/ApplicationWindow.cpp	2012-11-07 11:14:22.853706641 -0500
@@ -16228,11 +16228,12 @@
 	if (hostInfo.error() != QHostInfo::NoError){
 		QApplication::restoreOverrideCursor();
 		QMessageBox::critical(this, tr("QtiPlot - Error"), qtiplotWeb + ": " + hostInfo.errorString());
-		exit(0);
+		QApplication::restoreOverrideCursor();
+	}
+	else {
+		QApplication::restoreOverrideCursor();
+		showDonationsPage();
 	}
-
-	QApplication::restoreOverrideCursor();
-	showDonationsPage();
 }
 
 void ApplicationWindow::parseCommandLineArguments(const QStringList& args)