diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2019-05-05 14:58:04 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-05-11 12:06:19 -0700 |
commit | 4e81edcf1e73b118fea1cb72b8a287a2ed738ef5 (patch) | |
tree | a92b8ddcb2a477ca1bda64e751c9c454a016955a /desktop-widgets/mapwidget.cpp | |
parent | 15cb7e4e920105e81fe31821ee077cc74243e9fd (diff) | |
download | subsurface-4e81edcf1e73b118fea1cb72b8a287a2ed738ef5.tar.gz |
Map: remove skipReload logic in mapwidget.cpp
There used to be a flag to avoid reloading of the map. Since this
is not used anymore, remove it.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'desktop-widgets/mapwidget.cpp')
-rw-r--r-- | desktop-widgets/mapwidget.cpp | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/desktop-widgets/mapwidget.cpp b/desktop-widgets/mapwidget.cpp index 8bc0b175c..b28dea830 100644 --- a/desktop-widgets/mapwidget.cpp +++ b/desktop-widgets/mapwidget.cpp @@ -16,7 +16,6 @@ static const QUrl urlMapWidget = QUrl(QStringLiteral("qrc:/qml/MapWidget.qml")); static const QUrl urlMapWidgetError = QUrl(QStringLiteral("qrc:/qml/MapWidgetError.qml")); static bool isReady = false; -static bool skipReload = false; #define CHECK_IS_READY_RETURN_VOID() \ if (!isReady) return @@ -55,8 +54,7 @@ void MapWidget::doneLoading(QQuickWidget::Status status) void MapWidget::centerOnDiveSite(struct dive_site *ds) { CHECK_IS_READY_RETURN_VOID(); - if (!skipReload) - m_mapHelper->centerOnDiveSite(ds); + m_mapHelper->centerOnDiveSite(ds); } void MapWidget::centerOnIndex(const QModelIndex& idx) @@ -78,10 +76,8 @@ void MapWidget::repopulateLabels() void MapWidget::reload() { CHECK_IS_READY_RETURN_VOID(); - if (!skipReload) { - m_mapHelper->reloadMapLocations(); - m_mapHelper->centerOnSelectedDiveSite(); - } + m_mapHelper->reloadMapLocations(); + m_mapHelper->centerOnSelectedDiveSite(); } void MapWidget::selectedDivesChanged(const QList<int> &list) |