diff options
author | Anne Jan Brouwer <brouwer@annejan.com> | 2015-06-11 15:19:45 +0200 |
---|---|---|
committer | Anne Jan Brouwer <annejan@noprotocol.com> | 2015-06-11 15:19:45 +0200 |
commit | f69d65dfd3beb9acc936ea5d0c420a11ed0b9227 (patch) | |
tree | 685712f5fbcbaf63c71958702425065a494a5a50 /mainwindow.cpp | |
parent | 4d1cf48c15bde3b7af6074cf71b354e950a5180f (diff) |
enable/disable buttons
Diffstat (limited to 'mainwindow.cpp')
-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); } } |