aboutsummaryrefslogtreecommitdiff
path: root/libqmenumodel/src
diff options
context:
space:
mode:
authorAntti Kaijanmäki <antti.kaijanmaki@canonical.com>2014-04-02 13:19:02 +0300
committerAntti Kaijanmäki <antti.kaijanmaki@canonical.com>2014-04-02 13:19:02 +0300
commitbc008a3a928859b5496848b5867d93a1363473e5 (patch)
treec192e74a418d11f8711ad6da2247b0abae477cdd /libqmenumodel/src
parent112eb60fcc0b3d8075c6dd5d522e1669210a6629 (diff)
downloadqmenumodel-bc008a3a928859b5496848b5867d93a1363473e5.tar.gz
qmenumodel-bc008a3a928859b5496848b5867d93a1363473e5.tar.bz2
qmenumodel-bc008a3a928859b5496848b5867d93a1363473e5.zip
Add standard "has the property actually changed" check to UnityMenuModel::setBusName()
Diffstat (limited to 'libqmenumodel/src')
-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)