From 743f217620d8758af658ecfd3f8960ebed0a1427 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Mon, 29 Apr 2019 07:34:48 +0200 Subject: Map: don't call exitEditMode() in MapWidget::reload() On reload of the map, the map exits edit mode. Sounds logical at first, but the whole map-mode code is very unpredictable. What happened was that when switching from the dive site table to dive site edit mode, the code would enter map edit mode first. Then, the dive site tab got its hide-signal, which would reset the filter. This would reload the map and thus exit mode. Hence the user can't drag the flag on the map. Partially fixes #2076 Reported-by: Doug Junkins Signed-off-by: Berthold Stoeger --- desktop-widgets/mapwidget.cpp | 1 - 1 file changed, 1 deletion(-) (limited to 'desktop-widgets') diff --git a/desktop-widgets/mapwidget.cpp b/desktop-widgets/mapwidget.cpp index 5ae7451ee..b06100c50 100644 --- a/desktop-widgets/mapwidget.cpp +++ b/desktop-widgets/mapwidget.cpp @@ -86,7 +86,6 @@ void MapWidget::repopulateLabels() void MapWidget::reload() { CHECK_IS_READY_RETURN_VOID(); - m_mapHelper->exitEditMode(); if (!skipReload) m_mapHelper->reloadMapLocations(); } -- cgit v1.2.3-70-g09d2