John Levon wrote:

> I've got this ever since upgrading to RH* / Qt 3...

The following patch cures it. I think it's simply a qt bug. It seems that  
QApplication destructor assumes that QApplication::exec() was called 
before.

Don't ask me the rationale.

Bye, alfredo
Index: ChangeLog
===================================================================
RCS file: /cvs/lyx/lyx-devel/src/frontends/qt2/ChangeLog,v
retrieving revision 1.369
diff -u -r1.369 ChangeLog
--- ChangeLog	2002/12/20 01:32:51	1.369
+++ ChangeLog	2002/12/21 00:58:07
@@ -1,3 +1,7 @@
+2002-12-20  Alfredo Braunstein <[EMAIL PROTECTED]>
+
+	* lyx_gui.C: avoid ugly warning on exit
+
 2002-12-20  John Levon  <[EMAIL PROTECTED]>
 
 	* lyx_gui.C: fix exit to use std::exit, so we don't
Index: lyx_gui.C
===================================================================
RCS file: /cvs/lyx/lyx-devel/src/frontends/qt2/lyx_gui.C,v
retrieving revision 1.28
diff -u -r1.28 lyx_gui.C
--- lyx_gui.C	2002/12/20 01:32:51	1.28
+++ lyx_gui.C	2002/12/21 00:58:08
@@ -46,6 +46,7 @@
 #include "qfont_loader.h"
 #include "io_callback.h"
 
+#define QT_THREAD_SUPPORT
 #include <qapplication.h>
 #include <qwidget.h>
 #include <qpaintdevicemetrics.h>
@@ -173,7 +174,9 @@
 	// into a static dialog return in the lyx code (for example,
 	// load autosave file QMessageBox. We have to just get the hell
 	// out.
-	
+
+	qApp->unlock();
+
 	::exit(0);
 }
 

Reply via email to