Set checked status of menu entry for dive list filter correctly

When enabling the dive list filter via the menu entry
"Log->Filter dives" and then switch off the filter via the small "close"
button of the filter:
Set the checked status of the menu entry correctly.
Also set it correctly when switching on/off via the menu entry to avoid
any situation where it is not synced.

Signed-off-by: Stefan Fuchs <sfuchs@gmx.de>
This commit is contained in:
Stefan Fuchs 2017-10-27 17:52:49 +02:00 committed by Lubomir I. Ivanov
parent 215f61175d
commit 81492b8cba
3 changed files with 13 additions and 2 deletions

View file

@ -653,6 +653,7 @@ void MultiFilter::closeFilter()
{
MultiFilterSortModel::instance()->clearFilter();
hide();
MainWindow::instance()->setCheckedActionFilterTags(false);
}
TextHyperlinkEventFilter::TextHyperlinkEventFilter(QTextEdit *txtEdit) : QObject(txtEdit),