]> Shamusworld >> Repos - architektonas/commitdiff
Fix to prevent segfaulting on 64-bit platforms.
authorShamus Hammons <jlhamm@acm.org>
Mon, 6 Feb 2012 17:20:03 +0000 (17:20 +0000)
committerShamus Hammons <jlhamm@acm.org>
Mon, 6 Feb 2012 17:20:03 +0000 (17:20 +0000)
src/main.cpp
src/main.h

index 00643e10033aed347eb47caeef8233561839eea4..e17fccf139e4fffbd46781b90c87cd1499ec077c 100644 (file)
@@ -21,6 +21,8 @@
 
 Architektonas::Architektonas(int argc, char * argv[]): QApplication(argc, argv)//, charWnd(NULL)
 {
+       mainWindow = new ApplicationWindow;
+       mainWindow->show();
 }
 
 
@@ -30,8 +32,6 @@ int main(int argc, char * argv[])
        Q_INIT_RESOURCE(architektonas); // This must the same name as the exe filename
 
        Architektonas app(argc, argv);
-       ApplicationWindow mainWindow;
-       mainWindow.show();
 
        return app.exec();
 }
index b60c8edff9a63469454dcb90d7b271d5928ad0b3..95ec9305e136878639606675059052e577406365 100644 (file)
@@ -5,14 +5,16 @@
 
 // Forward declarations
 //class CharWindow;
+class ApplicationWindow;
 
 class Architektonas: public QApplication
 {
        public:
                Architektonas(int argc, char * argv[]);
 
-//     public:
+       public:
 //             CharWindow * charWnd;
+               ApplicationWindow * mainWindow;
 };
 
 #endif // __MAIN_H__