[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdelibs/plasma/private
From: Aaron J. Seigo <aseigo () kde ! org>
Date: 2011-01-13 19:35:02
Message-ID: 20110113193502.360E1AC8B3 () svn ! kde ! org
[Download RAW message or body]
SVN commit 1214249 by aseigo:
don't do a bunch of updates if the prefix remains the same
BUG:263049
M +5 -0 focusindicator.cpp
--- trunk/KDE/kdelibs/plasma/private/focusindicator.cpp #1214248:1214249
@@ -91,6 +91,7 @@
void FocusIndicator::setCustomPrefix(const QString &prefix)
{
+ QString was = m_prefix;
if (!m_prefix.isEmpty() && !m_customPrefix.isEmpty()) {
m_prefix.remove(m_customPrefix);
}
@@ -101,6 +102,10 @@
m_prefix.prepend(m_customPrefix);
}
+ if (m_prefix == was) {
+ return;
+ }
+
m_testPrefix = m_customPrefix % "hover";
if (m_prefix.isEmpty()) {
m_prefix = m_customPrefix % "shadow";
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic