From: John Levon Date: Thu, 12 Dec 2002 17:24:24 +0000 (+0000) Subject: fix z-ordering when opening file dialog X-Git-Tag: 1.6.10~17811 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=d67cd59c7d1524801b3966d09cecef9ea65f3819;p=features.git fix z-ordering when opening file dialog git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5812 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/frontends/qt2/ChangeLog b/src/frontends/qt2/ChangeLog index a9f2521d5f..951053f8fc 100644 --- a/src/frontends/qt2/ChangeLog +++ b/src/frontends/qt2/ChangeLog @@ -1,3 +1,8 @@ +2002-12-12 John Levon + + * FileDialog_private.C: don't mess with windows z-ordering + when opening a dialog (appear above focusWidget) + 2002-12-12 John Levon * QLyXKeySym.C: check for isNull(). It's needed by diff --git a/src/frontends/qt2/FileDialog_private.C b/src/frontends/qt2/FileDialog_private.C index 598b8f430c..79f417a17b 100644 --- a/src/frontends/qt2/FileDialog_private.C +++ b/src/frontends/qt2/FileDialog_private.C @@ -49,7 +49,7 @@ LyXFileDialog::LyXFileDialog(string const & p, string const & m, string const & t, FileDialog::Button const & b1, FileDialog::Button const & b2) : QFileDialog(p.c_str(), m.c_str(), - qApp->mainWidget(), t.c_str(), true), + qApp->focusWidget() ? qApp->focusWidget() : qApp->mainWidget(), t.c_str(), true), b1_(0), b2_(0) { setCaption(t.c_str());