mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 13:10:19 +00:00
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:
parent
8378695d7f
commit
89413c5f07
1 changed files with 2 additions and 9 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue