summaryrefslogtreecommitdiffstats
path: root/qt-ui/mainwindow.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-11-13 14:24:09 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-11-13 14:24:09 -0800
commitd765f7a991e3598cbf75aa317f1ab3392fa538b5 (patch)
treedbfaead2ed377c30107d2c8603fa37536b9e217b /qt-ui/mainwindow.cpp
parent2cd31a30f26480553dcbd403f5ba51a345e0939d (diff)
downloadsubsurface-d765f7a991e3598cbf75aa317f1ab3392fa538b5.tar.gz
When closing filter dialog via menu / shortcut, also reset them
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/mainwindow.cpp')
-rw-r--r--qt-ui/mainwindow.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp
index 66ebb61b4..3300d3ffa 100644
--- a/qt-ui/mainwindow.cpp
+++ b/qt-ui/mainwindow.cpp
@@ -1399,5 +1399,8 @@ void MainWindow::on_paste_triggered()
void MainWindow::on_actionFilterTags_triggered()
{
- ui.multiFilter->setVisible(!ui.multiFilter->isVisible());
+ if (ui.multiFilter->isVisible())
+ ui.multiFilter->closeFilter();
+ else
+ ui.multiFilter->setVisible(true);
}