summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMario Schlegel <m.schlegel@posteo.de>2018-11-04 12:01:54 +0100
committerMario Schlegel <m.schlegel@posteo.de>2018-11-04 12:01:54 +0100
commit5b285ebccfe67d0d32cf5e9411c0ec23bfa3e914 (patch)
treeebf4a7e712590ef70349f5f098552c656af970e4 /src
parent3d149f83ea170e104e185814cb1b9ae599528109 (diff)
Disable Edit and Delete action on deselect
Diffstat (limited to 'src')
-rw-r--r--src/mainwindow.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 19df29e5..38357692 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -353,6 +353,9 @@ void MainWindow::on_treeView_doubleClicked(const QModelIndex &index) {
void MainWindow::deselect() {
currentDir = "";
m_qtPass->clearClipboard();
+ ui->treeView->clearSelection();
+ ui->actionEdit->setEnabled(false);
+ ui->actionDelete->setEnabled(false);
ui->passwordName->setText("");
clearPanel(false);
}