From bc008a3a928859b5496848b5867d93a1363473e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antti=20Kaijanm=C3=A4ki?= Date: Wed, 2 Apr 2014 13:19:02 +0300 Subject: Add standard "has the property actually changed" check to UnityMenuModel::setBusName() --- libqmenumodel/src/unitymenumodel.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libqmenumodel/src') 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) -- cgit v1.2.3