summaryrefslogtreecommitdiffstats
path: root/mainwindow.cpp
diff options
context:
space:
mode:
authorAnne Jan Brouwer <brouwer@annejan.com>2015-06-11 15:19:45 +0200
committerAnne Jan Brouwer <annejan@noprotocol.com>2015-06-11 15:19:45 +0200
commitf69d65dfd3beb9acc936ea5d0c420a11ed0b9227 (patch)
tree685712f5fbcbaf63c71958702425065a494a5a50 /mainwindow.cpp
parent4d1cf48c15bde3b7af6074cf71b354e950a5180f (diff)
enable/disable buttons
Diffstat (limited to 'mainwindow.cpp')
-rw-r--r--mainwindow.cpp3
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);
}
}