From 88f32018f7e3aac6c2e2e629f73691b75d49e54b Mon Sep 17 00:00:00 2001 From: Pavel Sanda Date: Sun, 12 Apr 2009 12:33:35 +0000 Subject: [PATCH] Fix background of color dialog (inherit from dialog and not button for which we changed stylesheet) git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29227 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/GuiDocument.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontends/qt4/GuiDocument.cpp b/src/frontends/qt4/GuiDocument.cpp index 26ecb5b446..879e498df4 100644 --- a/src/frontends/qt4/GuiDocument.cpp +++ b/src/frontends/qt4/GuiDocument.cpp @@ -1190,7 +1190,7 @@ void GuiDocument::setCustomMargins(bool custom) void GuiDocument::changeBackgroundColor() { QColor const & newColor = QColorDialog::getColor( - rgb2qcolor(set_backgroundcolor), qApp->focusWidget()); + rgb2qcolor(set_backgroundcolor), asQWidget()); if (!newColor.isValid()) return; // set the button color