Set the transient hint only on the first shown dialog, not on all of them.

E.g. the file open dialog can shown another dialog for creating
a directory, and that one has to be transient for the file open dialog.

svn path=/trunk/kdebase/kdialog/; revision=263404
This commit is contained in:
Luboš Luňák 2003-10-31 11:45:14 +00:00
parent c147c9acb0
commit 0538c72cee

View file

@ -114,6 +114,7 @@ bool WinIdEmbedder::eventFilter(QObject *o, QEvent *e)
if (id)
XSetTransientForHint(w->x11Display(), w->winId(), id);
#endif
delete this; // delete - set the transient hint only on the first dialog
}
return QObject::eventFilter(o, e);
}