From 10078fd7da8b269aafd516405280a4263fae3196 Mon Sep 17 00:00:00 2001 From: Mark Liversedge Date: Wed, 27 Mar 2013 20:23:33 +0000 Subject: [PATCH] Fix color bug "in Italian" .. actually it was an uninitialized variable bug introduced by the earlier fix for the calendar model. Caused by new code checking if an index was -1 before setting it, but forgetting to initialise it to -1 to begin with. Fixes #531. --- src/GcCalendarModel.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/GcCalendarModel.h b/src/GcCalendarModel.h index 977347d66..89fe2ef0d 100644 --- a/src/GcCalendarModel.h +++ b/src/GcCalendarModel.h @@ -85,7 +85,7 @@ public slots: rows = ndays / 7; - filenameIndex = dateIndex = durationIndex = -1; + textIndex = colorIndex = filenameIndex = dateIndex = durationIndex = -1; columns.clear(); for (int i=0; icolumnCount(); i++) { QString column = sourceModel()->headerData (i, Qt::Horizontal, Qt::DisplayRole).toString();