Explorar o código

Fixed code part that made no sense

Patrick Widauer %!s(int64=8) %!d(string=hai) anos
pai
achega
65c61a750c
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      src/lib/reflect.hh

+ 4 - 1
src/lib/reflect.hh

@@ -75,7 +75,10 @@ struct DLL_LOCAL ReflectImpl<bool>: public ReflectSimple {
 	void set(const QString & value, bool * ok) {
 		if (value == "true") b=true;
 		else if (value == "false") b=false;
-		else *ok=false;
+		else {
+			*ok=false;
+			return;
+		}
 		*ok=true;
 	}
 };