Fix crash if the startup project changes to 0

This commit is contained in:
dt
2010-03-26 11:01:47 +01:00
parent e388b389f4
commit 94d6b23da1

View File

@@ -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)