From 97dc58513884bb89b6a015c2c7dc61c8bb3f7dfe Mon Sep 17 00:00:00 2001 From: Stephan Witt Date: Tue, 12 Sep 2017 11:05:42 +0200 Subject: [PATCH] #10662 use drawers for bibliography dialogs This change solves dialog stacking problems on newer Mac OS X in combination with the OS provided file open dialog. --- src/frontends/qt4/GuiBibtex.cpp | 1 + src/frontends/qt4/GuiBibtex.h | 1 + 2 files changed, 2 insertions(+) diff --git a/src/frontends/qt4/GuiBibtex.cpp b/src/frontends/qt4/GuiBibtex.cpp index 04f23d554d..4b4dd7e61c 100644 --- a/src/frontends/qt4/GuiBibtex.cpp +++ b/src/frontends/qt4/GuiBibtex.cpp @@ -57,6 +57,7 @@ GuiBibtex::GuiBibtex(GuiView & lv) setupUi(this); QDialog::setModal(true); + setWindowModality(Qt::WindowModal); connect(okPB, SIGNAL(clicked()), this, SLOT(slotOK())); diff --git a/src/frontends/qt4/GuiBibtex.h b/src/frontends/qt4/GuiBibtex.h index 2ffdbe6705..f5a95ffdf2 100644 --- a/src/frontends/qt4/GuiBibtex.h +++ b/src/frontends/qt4/GuiBibtex.h @@ -31,6 +31,7 @@ public: { Ui::BibtexAddUi::setupUi(this); QDialog::setModal(true); + setWindowModality(Qt::WindowModal); } };