From 6afe92e834bebe7fa3cbc441444652f917419df6 Mon Sep 17 00:00:00 2001 From: deva Date: Mon, 23 May 2005 18:42:50 +0000 Subject: Error message windows is now modal with mainwindow as its parent. --- src/miav.cc | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'src/miav.cc') 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 */ } -- cgit v1.2.3