disable hiding enable and name columns on folder models

Signed-off-by: leo78913 <leo3758@riseup.net>
This commit is contained in:
leo78913
2023-07-07 12:36:57 -03:00
parent 3154c2644a
commit d1cceac7d1
5 changed files with 6 additions and 1 deletions

View File

@ -550,6 +550,8 @@ QMenu* ResourceFolderModel::createHeaderContextMenu(QTreeView* tree)
menu->addSeparator()->setText(tr("Show / Hide Columns"));
for (int col = 0; col < columnCount(); ++col) {
// Skip creating actions for columns that should not be hidden
if (!m_columnsHideable.at(col)) continue;
auto act = new QAction(menu);
setupHeaderAction(act, col);