~nick-dedekind/qmenumodel/lp1378941-disconnect-signals

« back to all changes in this revision

Viewing changes to libqmenumodel/src/unitymenumodel.cpp

Add standard "has the property actually changed" check to UnityMenuModel::setBusName() 

Show diffs side-by-side

added added

removed removed

Lines of Context:
292
292
 
293
293
void UnityMenuModel::setBusName(const QByteArray &name)
294
294
{
 
295
    if (name == priv->busName)
 
296
        return;
 
297
 
295
298
    priv->clearName();
296
299
 
297
300
    if (priv->nameWatchId)