diff options
Diffstat (limited to 'src/miav.cc')
-rw-r--r-- | src/miav.cc | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/miav.cc b/src/miav.cc index c3f08fe..12c63be 100644 --- a/src/miav.cc +++ b/src/miav.cc @@ -31,6 +31,9 @@ /* * $Log$ + * Revision 1.11 2005/05/23 18:42:50 deva + * Error message windows is now modal with mainwindow as its parent. + * * Revision 1.10 2005/05/22 15:49:22 deva * Added multithreaded encoding support. * @@ -80,6 +83,7 @@ enum { */ int grab(int argc, char *argv[]) { #ifdef USE_GUI + QApplication miav_grab( argc, argv ); InfoGui info(&miav_grab, NULL); @@ -87,10 +91,15 @@ int grab(int argc, char *argv[]) { MainWindow mainwindow(&miav_grab); miav_grab.setMainWidget( &mainwindow ); + + info.setParent(&mainwindow); return miav_grab.exec(); + #else /* USE_GUI */ - printf("Error: MIaV was not compiled with GUI support...\n"); + + fprintf(stderr, "Error: MIaV was not compiled with GUI support...\n"); return 0; + #endif /* USE_GUI */ } |