summaryrefslogtreecommitdiffstats
path: root/clients/tde/src/app
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-07-05 02:07:57 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-07-05 02:07:57 -0500
commitb74c9f41d066373a73c650dbb7b93217d39c1667 (patch)
tree166f97e43eb3dc86abf87d9180a8283323a2fed1 /clients/tde/src/app
parentfa038ebd48bc9d0402eb9b271f119fefe498f541 (diff)
downloadulab-b74c9f41d066373a73c650dbb7b93217d39c1667.tar.gz
ulab-b74c9f41d066373a73c650dbb7b93217d39c1667.zip
Fix disconnect
Diffstat (limited to 'clients/tde/src/app')
-rw-r--r--clients/tde/src/app/remotemdi.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/clients/tde/src/app/remotemdi.cpp b/clients/tde/src/app/remotemdi.cpp
index be285ae..8a566e2 100644
--- a/clients/tde/src/app/remotemdi.cpp
+++ b/clients/tde/src/app/remotemdi.cpp
@@ -328,6 +328,10 @@ void RemoteMDI::disconnectFromServer() {
connect_action->setEnabled(false);
disconnect_action->setEnabled(false);
+ m_instrumentActionList.clear();
+ unplugActionList("instrumentMenu_actionlist");
+ unplugActionList("instrumentToolBar_actionlist");
+
// Close all windows
KMdiIterator<KMdiChildView*> *it = createIterator();
while (it->currentItem()) {
@@ -447,6 +451,9 @@ void RemoteMDI::closeSpecifiedWindow(KMdiChildView *window) {
updateStatusBarWindowMessage(TQString::null, TQT_TQOBJECT(window));
updateStatusBarMainMessage(i18n("Instrument %1 removed").arg(window->tabCaption()));
+ // Unplug menus
+ unplugActionList("selectedInstrument_actionlist");
+
// We could also call removeWindowFromMdi, but it doesn't delete the
// pointer. This way, we're sure that the view will get deleted.
closeWindow(window);