From 35f19267d2dd7a812a42e09e89ca289432a90c9f Mon Sep 17 00:00:00 2001 From: Milian Wolff Date: Tue, 5 Apr 2016 23:34:25 +0200 Subject: [PATCH] Fix wrong conditional that lead to excessive i18n calls. --- gui/chartmodel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui/chartmodel.cpp b/gui/chartmodel.cpp index fb95aec..ea6142f 100644 --- a/gui/chartmodel.cpp +++ b/gui/chartmodel.cpp @@ -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"); } -- 2.7.4