Skip to content
Snippets Groups Projects
Commit 94d6b23d authored by dt's avatar dt
Browse files

Fix crash if the startup project changes to 0

parent e388b389
No related branches found
No related tags found
No related merge requests found
......@@ -360,7 +360,8 @@ void ProjectWindow::refreshProject()
void ProjectWindow::startupProjectChanged(ProjectExplorer::Project *p)
{
int index = m_tabIndexToProject.indexOf(p);
m_tabWidget->setCurrentIndex(index);
if (index != -1)
m_tabWidget->setCurrentIndex(index);
}
void ProjectWindow::showProperties(int index, int subIndex)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment