From 23c398caf7229ad00abf9473a20f54b59cb3369f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Sat, 21 Sep 2024 13:20:32 +0200 Subject: [PATCH] Add a comment for the splitter refresh hack --- src/GUI/gui.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/GUI/gui.cpp b/src/GUI/gui.cpp index d29ed9ce..127de08f 100644 --- a/src/GUI/gui.cpp +++ b/src/GUI/gui.cpp @@ -1171,6 +1171,8 @@ void GUI::loadData(const Data &data) for (int i = 0; i < _tabs.count(); i++) graphs.append(_tabs.at(i)->loadData(data, _map)); + /* Refreshing the splitter is necessary to update the map viewport and + properly fit the data! */ if (updateGraphTabs()) _splitter->refresh(); paths = _mapView->loadData(data);