[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdebase/kcontrol/style
From:       Cristian Tibirna <tibirna () kde ! org>
Date:       2005-02-21 23:57:09
Message-ID: 20050221235709.342832226 () office ! kde ! org
[Download RAW message or body]

CVS commit by tibirna: 

CT: don't flicker style preview if same style chosen in the combobox.
    This patch was checked and fixed by Maksim Orlovich. Thank you.

BUGS:95925


  M +4 -0      kcmstyle.cpp   1.83


--- kdebase/kcontrol/style/kcmstyle.cpp  #1.82:1.83
@@ -838,4 +838,8 @@ void KCMStyle::styleChanged()
 void KCMStyle::switchStyle(const QString& styleName)
 {
+    // Don't flicker the preview if the same style is chosen in the cb
+    if (appliedStyle && appliedStyle->name() == styleName) 
+        return;
+
         // Create an instance of the new style...
         QStyle* style = QStyleFactory::create(styleName);


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic