Skip to content

Instantly share code, notes, and snippets.

@jef-n jef-n/gist:2771300
Created May 22, 2012

Embed
What would you like to do?
let see if we can catch an exception...
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
You can’t perform that action at this time.