MainWindow: working directory of GUI widgets can be updated when running

This commit is contained in:
matlabbe
2016-04-13 11:58:54 -04:00
parent 9339b86633
commit 809f5dd4df
2 changed files with 7 additions and 17 deletions
-8
View File
@@ -2269,10 +2269,6 @@ void PreferencesDialog::showEvent ( QShowEvent * event )
if(_monitoringState)
{
// In monitoring state, you cannot change remote paths
_ui->lineEdit_workingDirectory->setEnabled(false);
_ui->toolButton_workingDirectory->setEnabled(false);
_ui->label_workingDirectory->setEnabled(false);
_ui->lineEdit_dictionaryPath->setEnabled(false);
_ui->toolButton_dictionaryPath->setEnabled(false);
_ui->label_dictionaryPath->setEnabled(false);
@@ -2287,10 +2283,6 @@ void PreferencesDialog::showEvent ( QShowEvent * event )
}
else
{
_ui->lineEdit_workingDirectory->setEnabled(true);
_ui->toolButton_workingDirectory->setEnabled(true);
_ui->label_workingDirectory->setEnabled(true);
_ui->lineEdit_dictionaryPath->setEnabled(true);
_ui->toolButton_dictionaryPath->setEnabled(true);
_ui->label_dictionaryPath->setEnabled(true);