diff options
Diffstat (limited to 'tdecore/twin.cpp')
-rw-r--r-- | tdecore/twin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tdecore/twin.cpp b/tdecore/twin.cpp index 7b59ef7d4..fc6358351 100644 --- a/tdecore/twin.cpp +++ b/tdecore/twin.cpp @@ -310,7 +310,7 @@ void KWin::setMainWindow( TQWidget* subwindow, WId mainwindow ) /* Grmbl. See TQDialog::show(). That should get fixed in Qt somehow. */ - if( tqqt_cast< TQDialog* >( subwindow ) != NULL + if( tqt_cast< TQDialog* >( subwindow ) != NULL && subwindow->parentWidget() == NULL && kapp->mainWidget() != NULL ) { |