summaryrefslogtreecommitdiff
path: root/games/kolf-kde4/files/patch-newgame.cpp
blob: 7c7b8d8b16a57433b21a9e411ee2f950a3279915 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- newgame.cpp.orig	2018-08-29 20:35:41 UTC
+++ newgame.cpp
@@ -285,7 +285,7 @@ void NewGameDialog::addCourse()
 
 	for (QStringList::const_iterator fileIt = files.begin(); fileIt != files.end(); ++fileIt)
 	{
-		if (names.contains(*fileIt) > 0)
+		if (bool(names.contains(*fileIt)))
 		{
 			hasDuplicates = true;
 			continue;