diff --git a/src/GUI/gui.cpp b/src/GUI/gui.cpp index 6ad95ed7..8427bd40 100644 --- a/src/GUI/gui.cpp +++ b/src/GUI/gui.cpp @@ -866,6 +866,8 @@ void GUI::loadData(const Data &data) paths = _mapView->loadData(data); GraphTab *gt = static_cast(_graphTabWidget->currentWidget()); + if (!gt) + return; int index = _graphTabWidget->currentIndex(); for (int i = 0; i < paths.count(); i++) {