Abdelrazak Younes wrote:
Reverting to a static QApplication solves the problem. I guess we have an incompatibility problem between linux and windows!

I think that encapsulating this init code inside a class and make the QApplication a member of this class should solve the problem.

OK, until I (or someone else) find some time to clean this up, the attached (ugly) patch will do.

Will commit now.

Abdel.
Index: lyx_gui.C
===================================================================
--- lyx_gui.C   (revision 13943)
+++ lyx_gui.C   (working copy)
@@ -168,7 +168,12 @@
        // Force adding of font path _before_ QApplication is initialized
        FontLoader::initFontPath();
 
+
+#ifdef Q_WS_WIN
+       static QApplication win_app(argc, argv);
+#else
        app = new LQApplication(argc, argv);
+#endif
 
        // install translation file for Qt built-in dialogs
        // These are only installed since Qt 3.2.x

Reply via email to