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 <sfuchs@gmx.de>
This commit is contained in:
Stefan Fuchs 2017-03-11 07:42:20 +01:00 committed by Dirk Hohndel
parent 9c2619ea3b
commit ab887e4438

View file

@ -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);