NotificationPrivate: Fixes programming typo
authorLuís Pereira <luis.artur.pereira@gmail.com>
Wed, 25 May 2016 19:23:47 +0000 (20:23 +0100)
committerLuís Pereira <luis.artur.pereira@gmail.com>
Wed, 25 May 2016 19:23:47 +0000 (20:23 +0100)
Automatic casts tricked the compiler.

lxqtnotification.cpp

index 9c97570..d26f25f 100644 (file)
@@ -189,7 +189,7 @@ void NotificationPrivate::handleAction(uint id, QString key)
     else
         keyId = key.toInt(&ok);
 
-    if (ok && key >= 0)
+    if (ok && keyId >= 0)
         emit q->actionActivated(keyId);
 }