diff options
| author | 2017-03-11 07:42:20 +0100 | |
|---|---|---|
| committer | 2017-03-11 07:27:18 -0800 | |
| commit | ab887e44386e89e14a8f9947ca28392059134473 (patch) | |
| tree | 26cd0fb7deb28ee53d792f6f3d98a2154cb37249 /qt-models | |
| parent | 9c2619ea3bcf8a0ad40a758692c26a5aec350c7f (diff) | |
| download | subsurface-ab887e44386e89e14a8f9947ca28392059134473.tar.gz | |
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>
Diffstat (limited to 'qt-models')
| -rw-r--r-- | qt-models/cylindermodel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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); |