don't allow hiding the first column, qt gets very confused if you do

svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1107999
This commit is contained in:
Volker Lanz 2010-03-27 13:21:20 +00:00
parent 6c417d16fd
commit 597a574df5
1 changed files with 1 additions and 1 deletions

View File

@ -167,7 +167,7 @@ void showColumnsContextMenu(const QPoint& p, QTreeWidget& tree)
action->setCheckable(true);
action->setChecked(!header->isSectionHidden(idx));
action->setData(idx);
action->setEnabled(true);
action->setEnabled(idx > 0);
}
QAction* action = headerMenu.exec(tree.header()->mapToGlobal(p));