]> git.lyx.org Git - features.git/commitdiff
Don't unlock QApplication's mutex as it leads to undefined behaviour (and crashes...
authorAngus Leeming <leeming@lyx.org>
Wed, 19 Oct 2005 15:07:36 +0000 (15:07 +0000)
committerAngus Leeming <leeming@lyx.org>
Wed, 19 Oct 2005 15:07:36 +0000 (15:07 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10560 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt2/ChangeLog
src/frontends/qt2/lyx_gui.C

index daf9c5ab85cd9752857e27670f3518a3804cb966..80cce4cd5f671f3c3646c411ebf7d6617eb4236b 100644 (file)
@@ -1,3 +1,9 @@
+2005-10-19  Angus Leeming  <leeming@lyx.org>
+
+       * lyx_gui.C (LApplication d-tor): remove code to unlock
+       QApplication mutex as we didn't lock the thing in the
+       first place; undefined behaviour.
+
 2005-10-16  Georg Baum  <Georg.Baum@post.rwth-aachen.de>
 
        * QLyXKeySym.C (initEncodings): prevent crash when no codec found
index d72e5946b66cf061e2f5e83bf29909f59fb95bcc..d1e1f851c962f75374a42c483574be7caad40de0 100644 (file)
@@ -135,12 +135,7 @@ LQApplication::LQApplication(int & argc, char ** argv)
 
 
 LQApplication::~LQApplication()
-{
-#ifdef QT_THREAD_SUPPORT
-       if (locked())
-               unlock();
-#endif
-}
+{}
 
 
 #ifdef Q_WS_MACX