From d317704b27911357e7eed5da1a9989effec2fe41 Mon Sep 17 00:00:00 2001 From: Tobias Doerffel Date: Sun, 5 Oct 2014 22:31:50 +0200 Subject: [PATCH] LmmsPalette: retrieve palette properties via polishing Fix the short palette widget popup which is annoying and not neccessary as polishing does the same job without flicker. --- src/core/main.cpp | 2 -- src/gui/LmmsPalette.cpp | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) 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()