From ab887e44386e89e14a8f9947ca28392059134473 Mon Sep 17 00:00:00 2001 From: Stefan Fuchs Date: Sat, 11 Mar 2017 07:42:20 +0100 Subject: Fix cyclinder table issue "workingpressure" in planner Fixes the issue that the cylinder table in the planner is messed up after changing the table header. Signed-off-by: Stefan Fuchs --- qt-models/cylindermodel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qt-models/cylindermodel.cpp b/qt-models/cylindermodel.cpp index 59d993374..d7e026591 100644 --- a/qt-models/cylindermodel.cpp +++ b/qt-models/cylindermodel.cpp @@ -20,7 +20,7 @@ CylindersModel::CylindersModel(QObject *parent) : QVariant CylindersModel::headerData(int section, Qt::Orientation orientation, int role) const { - if (role == Qt::DisplayRole && in_planner() && section == WORKINGPRESS) + if (role == Qt::DisplayRole && orientation == Qt::Horizontal && in_planner() && section == WORKINGPRESS) return tr("Start press."); else return CleanerTableModel::headerData(section, orientation, role); -- cgit v1.2.3-70-g09d2