summaryrefslogtreecommitdiffstats
path: root/archivecontroller.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'archivecontroller.cpp')
-rw-r--r--archivecontroller.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/archivecontroller.cpp b/archivecontroller.cpp
index 0c29373..99c55db 100644
--- a/archivecontroller.cpp
+++ b/archivecontroller.cpp
@@ -320,7 +320,7 @@ void ArchiveController::treeSelectionChanged(const QItemSelection &selected, con
int nodeType = sel.first().data(ArchiveModel::TypeRole).toInt();
foreach(QAction *a, mActionsForTree){
int aData = a->data().toInt();
- bool enabled = (aData >> nodeType) & 1;
+ bool enabled = aData & nodeType;
a->setEnabled(enabled);
}
}