Replace the old filter widget for a new one

Wires the code to display the filter widget on the mainwindow.

Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
This commit is contained in:
Tomaz Canabrava 2018-10-21 15:40:25 +02:00 committed by Dirk Hohndel
parent 8378695d7f
commit 89413c5f07

View file

@ -761,9 +761,8 @@ void MainWindow::on_actionClose_triggered()
{
if (okToClose(tr("Please save or cancel the current dive edit before closing the file."))) {
closeCurrentFile();
// hide any pictures and the filter
DivePictureModel::instance()->updateDivePictures();
ui.multiFilter->closeFilter();
setApplicationState("Default");
recreateDiveList();
}
}
@ -1876,13 +1875,7 @@ void MainWindow::on_paste_triggered()
void MainWindow::on_actionFilterTags_triggered()
{
if (ui.multiFilter->isVisible()) {
ui.multiFilter->closeFilter();
ui.actionFilterTags->setChecked(false);
} else {
ui.multiFilter->setVisible(true);
ui.actionFilterTags->setChecked(true);
}
setApplicationState(getCurrentAppState() == "FilterDive" ? "Default" : "FilterDive");
}
void MainWindow::setCheckedActionFilterTags(bool checked)