blob: d1b57d8c8edae0351c4f229670bc23aa09fdee86 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
--- kernel/qwidget.cpp.orig Sat Jul 6 03:18:10 2002
+++ kernel/qwidget.cpp Sat Jul 6 03:31:18 2002
@@ -3198,12 +3198,14 @@
static bool noMoreToplevels()
{
QWidgetList *list = qApp->topLevelWidgets();
+ QWidget *main = qApp->mainWidget();
QWidget *widget = list->first();
while ( widget ) {
if ( !widget->isHidden()
&& !widget->isDesktop()
&& !widget->isPopup()
- && !widget->testWFlags( Qt::WStyle_Dialog) )
+ && (!widget->testWFlags( Qt::WStyle_Dialog)
+ || !widget->parentWidget()))
break;
widget = list->next();
}
|