Skip to content
Permalink
Browse files

check thread in customization, it should fix #5597

  • Loading branch information
blazek committed May 23, 2012
1 parent 7200ea2 commit d77069d2b0e05cc1cac51efa56ba5a4327989076
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/app/qgscustomization.cpp
@@ -856,6 +856,11 @@ void QgsCustomization::removeFromLayout( QLayout *theLayout, QWidget * theWidget

void QgsCustomization::preNotify( QObject * receiver, QEvent * event, bool * done )
{
// Crashes especially on Mac if the reciever is in another thread, see #5597
if ( QCoreApplication::instance()->thread() != receiver->thread() )
{
return;
}
if ( event->type() == QEvent::Show || event->type() == QEvent::MouseButtonPress )
{
QWidget *widget = qobject_cast<QWidget*>( receiver );

0 comments on commit d77069d

Please sign in to comment.
You can’t perform that action at this time.