]> git.mxchange.org Git - flightgear.git/commitdiff
Fix SIGSEGV with Qt launcher on Linux.
authorJames Turner <zakalawe@mac.com>
Sun, 2 Aug 2015 23:32:39 +0000 (18:32 -0500)
committerJames Turner <zakalawe@mac.com>
Sun, 2 Aug 2015 23:33:05 +0000 (18:33 -0500)
- patch from Dirk Dittmann

src/GUI/QtLauncher.cxx
src/GUI/QtLauncher.hxx

index 50b6dea07983dfd83480bdd0316457b3983b898d..b67ea3639e3584570e3bd6008171df2f9e7d2b20 100644 (file)
@@ -535,7 +535,7 @@ QtLauncher::~QtLauncher()
     
 }
 
-void QtLauncher::initApp(int argc, char** argv)
+void QtLauncher::initApp(int& argc, char** argv)
 {
     static bool qtInitDone = false;
     if (!qtInitDone) {
index 6b6615af131a6958f66bfcc66792bcd21a01c3cf..3e582813d213d5097748f7612c04280cdba915c1 100644 (file)
@@ -48,7 +48,7 @@ public:
     QtLauncher();
     virtual ~QtLauncher();
 
-    static void initApp(int argc, char** argv);
+    static void initApp(int& argc, char** argv);
 
     static bool runLauncherDialog();