Skip to content

Commit

Permalink
Handle zero maps for debug configurations
Browse files Browse the repository at this point in the history
  • Loading branch information
dpaulat committed Jun 2, 2024
1 parent 3a11f4d commit 601a2ad
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion scwx-qt/source/scwx/qt/main/main_window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 601a2ad

Please sign in to comment.