Created
May 22, 2012 20:04
-
-
Save jef-n/2771300 to your computer and use it in GitHub Desktop.
let see if we can catch an exception...
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/core/qgsapplication.cpp b/src/core/qgsapplication.cpp | |
index 0f1c943..cbaeacb 100644 | |
--- a/src/core/qgsapplication.cpp | |
+++ b/src/core/qgsapplication.cpp | |
@@ -200,7 +200,8 @@ bool QgsApplication::event( QEvent * event ) | |
bool QgsApplication::notify( QObject * receiver, QEvent * event ) | |
{ | |
bool done = false; | |
- emit preNotify( receiver, event, &done ); | |
+ if( thread() == receiver->thread() ) | |
+ emit preNotify( receiver, event, &done ); | |
if ( done ) | |
return true; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment