diff --git a/scwx-qt/source/scwx/qt/main/main_window.cpp b/scwx-qt/source/scwx/qt/main/main_window.cpp index ac9cb35c..efba56eb 100644 --- a/scwx-qt/source/scwx/qt/main/main_window.cpp +++ b/scwx-qt/source/scwx/qt/main/main_window.cpp @@ -717,7 +717,14 @@ void MainWindowImpl::ConfigureMapLayout() mainWindow_->ui->centralwidget->layout()->addWidget(vs); - SetActiveMap(maps_.at(0)); + if (mapCount > 0) + { + SetActiveMap(maps_.at(0)); + } + else + { + SetActiveMap(nullptr); + } } void MainWindowImpl::ConfigureMapStyles()