diff options
author | Antti Kaijanmäki <antti.kaijanmaki@canonical.com> | 2014-04-02 13:19:02 +0300 |
---|---|---|
committer | Antti Kaijanmäki <antti.kaijanmaki@canonical.com> | 2014-04-02 13:19:02 +0300 |
commit | bc008a3a928859b5496848b5867d93a1363473e5 (patch) | |
tree | c192e74a418d11f8711ad6da2247b0abae477cdd /libqmenumodel/src | |
parent | 112eb60fcc0b3d8075c6dd5d522e1669210a6629 (diff) | |
download | qmenumodel-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.cpp | 3 |
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) |