| Summary: | "Switching" to the same style that currently previewed triggers preview refresh | ||
|---|---|---|---|
| Product: | [Unmaintained] kcontrol | Reporter: | Marcin Orlowski <carlos-spam> |
| Component: | kcmstyle | Assignee: | Cristian Tibirna <tibirna> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | unspecified | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
Marcin Orlowski
2004-12-28 14:19:42 UTC
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);
|