mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
map: don't explicitly reload the map from the mainwindow
The map listens to the reset signal by itself. This avoids double reload of the map on open/close. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
fbb737e85b
commit
3abb82bfd5
2 changed files with 1 additions and 7 deletions
|
@ -200,9 +200,6 @@ MainWindow::MainWindow() :
|
|||
initialUiSetup();
|
||||
readSettings();
|
||||
diveList->setFocus();
|
||||
#ifdef MAP_SUPPORT
|
||||
MapWidget::instance()->reload();
|
||||
#endif
|
||||
diveList->expand(diveList->model()->index(0, 0));
|
||||
diveList->scrollTo(diveList->model()->index(0, 0), QAbstractItemView::PositionAtCenter);
|
||||
#ifdef NO_USERMANUAL
|
||||
|
@ -507,9 +504,6 @@ void MainWindow::closeCurrentFile()
|
|||
clear_dive_file_data(); // this clears all the core data structures and resets the models
|
||||
setCurrentFile(nullptr);
|
||||
diveList->setSortOrder(DiveTripModelBase::NR, Qt::DescendingOrder);
|
||||
#ifdef MAP_SUPPORT
|
||||
MapWidget::instance()->reload();
|
||||
#endif
|
||||
if (!existing_filename)
|
||||
setTitle();
|
||||
disableShortcuts();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue