Fix wrong conditional that lead to excessive i18n calls.
authorMilian Wolff <mail@milianw.de>
Tue, 5 Apr 2016 21:34:25 +0000 (23:34 +0200)
committerMilian Wolff <mail@milianw.de>
Tue, 5 Apr 2016 21:34:25 +0000 (23:34 +0200)
gui/chartmodel.cpp

index fb95aec..ea6142f 100644 (file)
@@ -59,7 +59,7 @@ QVariant ChartModel::headerData(int section, Qt::Orientation orientation, int ro
             return QVariant::fromValue(m_columnDataSetBrushes.at(section));
         }
 
-        if (role == Qt::DisplayRole || Qt::ToolTipRole) {
+        if (role == Qt::DisplayRole || role == Qt::ToolTipRole) {
             if (section == 0) {
                 return i18n("Elapsed Time");
             }