From 51dd78f9f3948f7cb5a7fcc87e59aa71f9375597 Mon Sep 17 00:00:00 2001 From: Anne Jan Brouwer Date: Tue, 7 Jul 2015 01:23:36 +0200 Subject: always re-enable config --- mainwindow.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'mainwindow.cpp') 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); } /** -- cgit v1.2.3