diff options
author | Mario Schlegel <m.schlegel@posteo.de> | 2018-11-04 12:01:54 +0100 |
---|---|---|
committer | Mario Schlegel <m.schlegel@posteo.de> | 2018-11-04 12:01:54 +0100 |
commit | 5b285ebccfe67d0d32cf5e9411c0ec23bfa3e914 (patch) | |
tree | ebf4a7e712590ef70349f5f098552c656af970e4 /src | |
parent | 3d149f83ea170e104e185814cb1b9ae599528109 (diff) |
Disable Edit and Delete action on deselect
Diffstat (limited to 'src')
-rw-r--r-- | src/mainwindow.cpp | 3 |
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); } |