summaryrefslogtreecommitdiffstats
path: root/archivecontroller.cpp
diff options
context:
space:
mode:
authorArno <am@disconnect.de>2015-03-31 11:03:39 +0200
committerArno <am@disconnect.de>2015-03-31 11:03:39 +0200
commitc421ac92e03f2810aed85f06dd0ed24c89d4e9d8 (patch)
treeaeee8bf9cba6f8f39cb7de2ce466298591c7e553 /archivecontroller.cpp
parentac814248b52912a366d2eb62e8ff00f2caa7e4d7 (diff)
downloadSheMov-c421ac92e03f2810aed85f06dd0ed24c89d4e9d8.tar.gz
SheMov-c421ac92e03f2810aed85f06dd0ed24c89d4e9d8.tar.bz2
SheMov-c421ac92e03f2810aed85f06dd0ed24c89d4e9d8.zip
Fix logic for activating actions
Well, that happens when you just copy and paste, not understanding what you're doing. Kinda embarrassing...
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);
}
}