[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    koffice/libs/main
From:       Jos van den Oever <jos () vandenoever ! info>
Date:       2010-08-24 1:17:59
Message-ID: 20100824011759.2611CAC867 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1167208 by vandenoever:

qApp->processEvents has to be called more than once to avoid crashes.

 M  +2 -0      KoApplication.cpp  


--- trunk/koffice/libs/main/KoApplication.cpp #1167207:1167208
@@ -262,7 +262,9 @@
                         // handle events that were triggered during loading or
                         // saving, before closing the document, since these
                         // events can cause access to the document
+                        while (qApp->hasPendingEvents()) {
                         qApp->processEvents();
+                        }
                         // close the document
                         shell->slotFileQuit();
                         return true; // only load one document!
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic