summaryrefslogtreecommitdiffstats
path: root/sigmodr/SigmodrUI.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sigmodr/SigmodrUI.cpp')
-rw-r--r--sigmodr/SigmodrUI.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/sigmodr/SigmodrUI.cpp b/sigmodr/SigmodrUI.cpp
index 23f56913..7d051fea 100644
--- a/sigmodr/SigmodrUI.cpp
+++ b/sigmodr/SigmodrUI.cpp
@@ -471,7 +471,7 @@ void SigmodrUI::on_splitter_splitterMoved()
void SigmodrUI::on_treeSigmod_clicked(const QModelIndex& index)
{
- if (!(treeSigmod->model()->flags(index) & Qt::ItemIsSelectable))
+ if (!(treeSigmod->model()->flags(index) & Qt::ItemIsEnabled))
return;
ObjectUI* widget = treeSigmod->editorWidget(index);
if (widget && closeWidget())