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
This commit is contained in:
Pavel Sanda 2009-04-12 12:33:35 +00:00
parent 91a6ac3457
commit 88f32018f7

View 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