Commits

Anonymous committed 2c87593

Fix a crash in Kolf NewGame::courseSelected.

BUG: 274418
FIXED-IN: 4.7

I do not see why this bug should ever be triggered with QAbstractItemView::SingleSelection, but meh...

  • Participants
  • Parent commits 1521820

Comments (0)

Files changed (1)

File kolf/newgame.cpp

 
 void NewGameDialog::courseSelected(int index)
 {
+	//BUG 274418: select first course if nothing selected (should not happen, but meh)
+	if (index < 0)
+		index = 0;
 	currentCourse = names.at(index);
 
 	CourseInfo &curinfo = info[currentCourse];