]> git.lyx.org Git - lyx.git/commitdiff
#10662 use drawers for bibliography dialogs
authorStephan Witt <switt@lyx.org>
Tue, 12 Sep 2017 09:05:42 +0000 (11:05 +0200)
committerStephan Witt <switt@lyx.org>
Tue, 12 Sep 2017 09:14:16 +0000 (11:14 +0200)
This change solves dialog stacking problems on newer Mac OS X in combination with the OS provided file open dialog.

(cherry picked from commit 97dc58513884bb89b6a015c2c7dc61c8bb3f7dfe)

src/frontends/qt4/GuiBibtex.cpp
src/frontends/qt4/GuiBibtex.h

index 04f23d554d24f2949fd8764c437ec00df67373ec..4b4dd7e61c7dead146cf2b4ff0a85f7c606a069e 100644 (file)
@@ -57,6 +57,7 @@ GuiBibtex::GuiBibtex(GuiView & lv)
        setupUi(this);
 
        QDialog::setModal(true);
+       setWindowModality(Qt::WindowModal);
 
        connect(okPB, SIGNAL(clicked()),
                this, SLOT(slotOK()));
index 2ffdbe6705622a4db9d1b06b3c63bdadebd6223e..f5a95ffdf219cba7c4ada9e0bd3fc0e95af0336f 100644 (file)
@@ -31,6 +31,7 @@ public:
        {
                Ui::BibtexAddUi::setupUi(this);
                QDialog::setModal(true);
+               setWindowModality(Qt::WindowModal);
        }
 };