From 85568a6083933690785043d91a8d9498ab9995e2 Mon Sep 17 00:00:00 2001 From: Marcus Eggenberger Date: Fri, 18 Jul 2008 15:31:55 +0200 Subject: [PATCH] disabling core info while not connected. the core info dialog is still in an early state. let me know what you'd like to have in there --- src/qtui/mainwin.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/qtui/mainwin.cpp b/src/qtui/mainwin.cpp index e3dece21..9b73d55c 100644 --- a/src/qtui/mainwin.cpp +++ b/src/qtui/mainwin.cpp @@ -410,10 +410,11 @@ void MainWin::connectedToCore() { } void MainWin::setConnectedState() { - ui.menuViews->setEnabled(true); //ui.menuCore->setEnabled(true); ui.actionConnectCore->setEnabled(false); ui.actionDisconnectCore->setEnabled(true); + ui.actionCoreInfo->setEnabled(true); + ui.menuViews->setEnabled(true); ui.bufferWidget->show(); statusBar()->showMessage(tr("Connected to core.")); setWindowIcon(onlineTrayIcon); @@ -462,11 +463,12 @@ void MainWin::disconnectedFromCore() { } void MainWin::setDisconnectedState() { - ui.menuViews->setEnabled(false); //ui.menuCore->setEnabled(false); + ui.actionConnectCore->setEnabled(true); ui.actionDisconnectCore->setEnabled(false); + ui.actionCoreInfo->setEnabled(false); + ui.menuViews->setEnabled(false); ui.bufferWidget->hide(); - ui.actionConnectCore->setEnabled(true); statusBar()->showMessage(tr("Not connected to core.")); setWindowIcon(offlineTrayIcon); qApp->setWindowIcon(offlineTrayIcon); -- 2.20.1