projects
/
quassel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
68cbd5e
)
disabling core info while not connected. the core info dialog is still in an early...
author
Marcus Eggenberger
<egs@quassel-irc.org>
Fri, 18 Jul 2008 13:31:55 +0000
(15:31 +0200)
committer
Marcus Eggenberger
<egs@quassel-irc.org>
Fri, 18 Jul 2008 13:31:55 +0000
(15:31 +0200)
src/qtui/mainwin.cpp
patch
|
blob
|
history
diff --git
a/src/qtui/mainwin.cpp
b/src/qtui/mainwin.cpp
index
e3dece2
..
9b73d55
100644
(file)
--- a/
src/qtui/mainwin.cpp
+++ b/
src/qtui/mainwin.cpp
@@
-410,10
+410,11
@@
void MainWin::connectedToCore() {
}
void MainWin::setConnectedState() {
}
void MainWin::setConnectedState() {
- ui.menuViews->setEnabled(true);
//ui.menuCore->setEnabled(true);
ui.actionConnectCore->setEnabled(false);
ui.actionDisconnectCore->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);
ui.bufferWidget->show();
statusBar()->showMessage(tr("Connected to core."));
setWindowIcon(onlineTrayIcon);
@@
-462,11
+463,12
@@
void MainWin::disconnectedFromCore() {
}
void MainWin::setDisconnectedState() {
}
void MainWin::setDisconnectedState() {
- ui.menuViews->setEnabled(false);
//ui.menuCore->setEnabled(false);
//ui.menuCore->setEnabled(false);
+ ui.actionConnectCore->setEnabled(true);
ui.actionDisconnectCore->setEnabled(false);
ui.actionDisconnectCore->setEnabled(false);
+ ui.actionCoreInfo->setEnabled(false);
+ ui.menuViews->setEnabled(false);
ui.bufferWidget->hide();
ui.bufferWidget->hide();
- ui.actionConnectCore->setEnabled(true);
statusBar()->showMessage(tr("Not connected to core."));
setWindowIcon(offlineTrayIcon);
qApp->setWindowIcon(offlineTrayIcon);
statusBar()->showMessage(tr("Not connected to core."));
setWindowIcon(offlineTrayIcon);
qApp->setWindowIcon(offlineTrayIcon);