diff options
author | Anne Jan Brouwer <annejan@noprotocol.com> | 2015-06-11 15:19:45 +0200 |
---|---|---|
committer | Anne Jan Brouwer <annejan@noprotocol.com> | 2015-06-11 15:19:45 +0200 |
commit | 63dd2abaeda4e414be1ceb59fc78d663f6ec083d (patch) | |
tree | 685712f5fbcbaf63c71958702425065a494a5a50 | |
parent | f2aa2de7fdc4c05ae75ab435459cc1ff47dc305e (diff) |
enable/disable buttons
-rw-r--r-- | mainwindow.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/mainwindow.cpp b/mainwindow.cpp index 2b019bf1..45cab12f 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -429,6 +429,9 @@ void MainWindow::on_treeView_clicked(const QModelIndex &index) } else { executeWrapper(gpgExecutable , "-d --quiet --yes --no-encrypt-to --batch --use-agent \"" + file + '"'); } + } else { + ui->editButton->setEnabled(false); + ui->deleteButton->setEnabled(true); } } |