From: Frank Osterfeld Date: Thu, 2 Aug 2012 20:06:22 +0000 (+0200) Subject: Fix intended assignment to customSet variable. X-Git-Tag: v5.0.0-beta1~434 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=063e3a4da82a7ffb38afb26c3be0231e4e4dc37d;p=profile%2Fivi%2Fqtbase.git Fix intended assignment to customSet variable. 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 Reviewed-by: Friedemann Kleint --- diff --git a/src/gui/kernel/qplatformdialoghelper.cpp b/src/gui/kernel/qplatformdialoghelper.cpp index f71c5e5..bab6ee1 100644 --- a/src/gui/kernel/qplatformdialoghelper.cpp +++ b/src/gui/kernel/qplatformdialoghelper.cpp @@ -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; }