Skip to content

Commit 5e05058

Browse files
committed
Allow for empty game no
1 parent 19f539c commit 5e05058

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

projects/lib/src/tournament.cpp

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -428,13 +428,20 @@ bool Tournament::fileExists(QString path) const
428428
}
429429
/* do something with the line */
430430
} while (!line.isNull());
431-
if (gameNo && (gameNo == (m_finishedGameCount + 1)))
431+
if (gameNo)
432432
{
433-
return true;
433+
if (gameNo == (m_finishedGameCount + 1))
434+
{
435+
return true;
436+
}
437+
else
438+
{
439+
return false;
440+
}
434441
}
435442
else
436443
{
437-
return false;
444+
return true;
438445
}
439446
} else {
440447
return false;

0 commit comments

Comments
 (0)