mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
cleanup: move shown-text calculation from filter widget to core
The filter widget was caching whether the filter was active and used that flag to calculate the "# dives shown" string. Move this directly to the DiveFilter class to remove interdependencies and to unify with mobile. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
68fffc2672
commit
38b686687f
5 changed files with 12 additions and 14 deletions
|
@ -1536,7 +1536,7 @@ void MainWindow::setTitle()
|
|||
}
|
||||
|
||||
QString unsaved = (unsavedChanges() ? " *" : "");
|
||||
QString shown = QString(" (%1)").arg(filterWidget2.shownText());
|
||||
QString shown = QString(" (%1)").arg(DiveFilter::instance()->shownText());
|
||||
setWindowTitle("Subsurface: " + displayedFilename(existing_filename) + unsaved + shown);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue