aboutsummaryrefslogtreecommitdiff
path: root/libqmenumodel
diff options
context:
space:
mode:
authorAntti Kaijanmäki <antti.kaijanmaki@canonical.com>2014-05-14 11:38:35 +0000
committerCI bot <ps-jenkins@lists.canonical.com>2014-05-14 11:38:35 +0000
commitb927a955fa5107f3e66dbeea509c2f825266504a (patch)
treea3f77eab94d25fdd82d52d6e576308240b02ca4f /libqmenumodel
parent94aac0751db1c9d07d40d8c9303a0a287d69cd79 (diff)
parent802224ff32bbb4b669343e614c651f52b69b54ee (diff)
downloadqmenumodel-b927a955fa5107f3e66dbeea509c2f825266504a.tar.gz
qmenumodel-b927a955fa5107f3e66dbeea509c2f825266504a.tar.bz2
qmenumodel-b927a955fa5107f3e66dbeea509c2f825266504a.zip
Add standard "has the property actually changed" check to UnityMenuModel::setBusName()
Diffstat (limited to 'libqmenumodel')
-rw-r--r--libqmenumodel/src/unitymenumodel.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/libqmenumodel/src/unitymenumodel.cpp b/libqmenumodel/src/unitymenumodel.cpp
index a2aae31..8db990b 100644
--- a/libqmenumodel/src/unitymenumodel.cpp
+++ b/libqmenumodel/src/unitymenumodel.cpp
@@ -292,6 +292,9 @@ QByteArray UnityMenuModel::busName() const
void UnityMenuModel::setBusName(const QByteArray &name)
{
+ if (name == priv->busName)
+ return;
+
priv->clearName();
if (priv->nameWatchId)