From: Pavel Sanda Date: Sun, 12 Apr 2009 12:33:35 +0000 (+0000) Subject: Fix background of color dialog X-Git-Tag: 2.0.0~6850 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=88f32018f7e3aac6c2e2e629f73691b75d49e54b;p=features.git 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 --- 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