From kde-commits Thu Jan 13 19:35:02 2011 From: =?utf-8?q?Aaron=20J=2E=20Seigo?= Date: Thu, 13 Jan 2011 19:35:02 +0000 To: kde-commits Subject: KDE/kdelibs/plasma/private Message-Id: <20110113193502.360E1AC8B3 () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=129494734914050 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";