Skip to content

Commit 87ee434

Browse files
committed
Fix: Assertion fail on startup when stats tab is active
1 parent 5f789f3 commit 87ee434

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/main_window.cpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,9 @@ void MainWindow::attemptToOpenFile(const QString& filepath)
299299
projectOpen = true;
300300

301301
updateItemCountDisplays();
302-
getActiveMapper().tab.refreshStats();
302+
if (activeMapper) {
303+
activeMapper->tab.refreshStats();
304+
}
303305

304306
setUIEnabled(true);
305307
addToRecentFilesList(filepath);

0 commit comments

Comments
 (0)