summaryrefslogtreecommitdiff
path: root/client/miav_client.cc
diff options
context:
space:
mode:
Diffstat (limited to 'client/miav_client.cc')
-rw-r--r--client/miav_client.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/client/miav_client.cc b/client/miav_client.cc
index a8e9f7c..f8ea6d2 100644
--- a/client/miav_client.cc
+++ b/client/miav_client.cc
@@ -42,6 +42,7 @@ QApplication *miav_app;
* This function starts the MIaV gui.
*/
int main(int argc, char *argv[])
+{
QApplication miav_grab( argc, argv );
miav_app = &miav_grab;
@@ -52,8 +53,7 @@ int main(int argc, char *argv[])
InfoEventHandler *eventhandler = new InfoEventHandler( );
miav_grab.installEventFilter( eventhandler );
- MainWindow mainwindow( &miav_grab );
- miav_grab.setMainWidget( &mainwindow );
+ MainWindow mainwindow;
info.setParent(&mainwindow);
return miav_grab.exec();