summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnne Jan Brouwer <brouwer@annejan.com>2015-07-07 01:23:36 +0200
committerAnne Jan Brouwer <brouwer@annejan.com>2015-07-07 01:23:36 +0200
commitd37ed906a918f899f64f263de3675b74861ad0f8 (patch)
tree708c24cdd33e1c74fcdaacab567edbb89b9d0a5e
parenta6eb9b8b47e27965ee3da8b0e9398e1c99ba5c55 (diff)
always re-enable config
-rw-r--r--mainwindow.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/mainwindow.cpp b/mainwindow.cpp
index db119cac..c0991381 100644
--- a/mainwindow.cpp
+++ b/mainwindow.cpp
@@ -255,6 +255,7 @@ bool MainWindow::checkConfig() {
ui->updateButton->hide();
}
ui->lineEdit->setFocus();
+
startupPhase = false;
return true;
}
@@ -586,11 +587,12 @@ void MainWindow::enableUiElements(bool state) {
ui->lineEdit->setEnabled(state);
ui->addButton->setEnabled(state);
ui->usersButton->setEnabled(state);
+ ui->configButton->setEnabled(state);
+ // is a file selected?
state &= ui->treeView->currentIndex().isValid();
ui->deleteButton->setEnabled(state);
ui->editButton->setEnabled(state);
ui->pushButton->setEnabled(state);
- ui->configButton->setEnabled(state);
}
/**