aboutsummaryrefslogtreecommitdiff
path: root/libqmenumodel
diff options
context:
space:
mode:
authorRenato Araujo Oliveira Filho <renato.filho@canonical.com>2012-12-11 16:07:48 +0000
committerRenato Araujo Oliveira Filho <renato.filho@canonical.com>2012-12-11 16:07:48 +0000
commitedbfcdf9b83c09ad4519f55d1c648e0e2fc664eb (patch)
tree3ee364e71cab446a4b183eb361261b57ca9e62f6 /libqmenumodel
parent0f20cc09a72e4d38eb101b649c965b495d255cf3 (diff)
downloadqmenumodel-edbfcdf9b83c09ad4519f55d1c648e0e2fc664eb.tar.gz
qmenumodel-edbfcdf9b83c09ad4519f55d1c648e0e2fc664eb.tar.bz2
qmenumodel-edbfcdf9b83c09ad4519f55d1c648e0e2fc664eb.zip
Fixed model disconnect function.
Set the model null during the disconnection will make sure that the model was cleared and the new call of connect will populate the model again.
Diffstat (limited to 'libqmenumodel')
-rw-r--r--libqmenumodel/src/qdbusmenumodel.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/libqmenumodel/src/qdbusmenumodel.cpp b/libqmenumodel/src/qdbusmenumodel.cpp
index b404d0b..bd678fe 100644
--- a/libqmenumodel/src/qdbusmenumodel.cpp
+++ b/libqmenumodel/src/qdbusmenumodel.cpp
@@ -84,6 +84,7 @@ void QDBusMenuModel::start()
void QDBusMenuModel::stop()
{
QDBusObject::disconnect();
+ setMenuModel(NULL);
}
/*! \internal */