]> git.lyx.org Git - features.git/commitdiff
Fix background of color dialog
authorPavel Sanda <sanda@lyx.org>
Sun, 12 Apr 2009 12:33:35 +0000 (12:33 +0000)
committerPavel Sanda <sanda@lyx.org>
Sun, 12 Apr 2009 12:33:35 +0000 (12:33 +0000)
(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

index 26ecb5b446137d8fa8d4a918d3710dd5c67873ac..879e498df4499e8a95c5c9703e3ac118ecc2deb7 100644 (file)
@@ -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