mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 14:25:27 +00:00
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:
parent
9c2619ea3b
commit
ab887e4438
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue