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.
This commit is contained in:
Mark Liversedge
2013-03-27 20:23:33 +00:00
parent 7804e510e2
commit 10078fd7da

View File

@@ -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; i<sourceModel()->columnCount(); i++) {
QString column = sourceModel()->headerData (i, Qt::Horizontal, Qt::DisplayRole).toString();