mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 16:18:42 +00:00
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user