diff --git a/src/core/main.cpp b/src/core/main.cpp index 5cb923b55..7d66664e0 100644 --- a/src/core/main.cpp +++ b/src/core/main.cpp @@ -399,8 +399,6 @@ int main( int argc, char * * argv ) QApplication::setStyle( lmmsstyle ); LmmsPalette * lmmspal = new LmmsPalette( NULL, lmmsstyle ); - lmmspal->show(); // necessary to get properties - lmmspal->hide(); QPalette lpal = lmmspal->palette(); QApplication::setPalette( lpal ); diff --git a/src/gui/LmmsPalette.cpp b/src/gui/LmmsPalette.cpp index 02c26312e..955b0683e 100644 --- a/src/gui/LmmsPalette.cpp +++ b/src/gui/LmmsPalette.cpp @@ -49,6 +49,7 @@ LmmsPalette::LmmsPalette( QWidget * parent, QStyle * stylearg ) : { setStyle( stylearg ); stylearg->polish( this ); + ensurePolished(); } LmmsPalette::~LmmsPalette()