Fix intended assignment to customSet variable.
authorFrank Osterfeld <frank.osterfeld@kdab.com>
Thu, 2 Aug 2012 20:06:22 +0000 (22:06 +0200)
committerQt by Nokia <qt-info@nokia.com>
Sun, 5 Aug 2012 23:31:04 +0000 (01:31 +0200)
The naming suggests that this variable should be set to true here (instead of leaving the expression result unused). Also, the variable isn't written to anywhere else.

Change-Id: I8aae904f6e4456ce0bdd053ce89c2721168dccd3
Reviewed-by: Laszlo Papp <lpapp@kde.org>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
src/gui/kernel/qplatformdialoghelper.cpp

index f71c5e5..bab6ee1 100644 (file)
@@ -310,7 +310,7 @@ void QColorDialogOptions::setCustomColor(int index, QRgb color)
 {
     if (uint(index) >= uint(QColorDialogStaticData::CustomColorCount))
         return;
-    qColorDialogStaticData()->customSet;
+    qColorDialogStaticData()->customSet = true;
     qColorDialogStaticData()->customRgb[index] = color;
 }