summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2009-05-21 13:37:38 -0400
committerBen Boeckel <MathStuf@gmail.com>2009-05-21 13:37:38 -0400
commit6d6ca27fbde34088fbfd8720a1306238f0336ad2 (patch)
treeed9a36f0f0d89e2616713eb724768debebcbae29
parentd8e8a7789bcf2c1b9e5c39c51286b6fc52a5a271 (diff)
downloadsigen-6d6ca27fbde34088fbfd8720a1306238f0336ad2.tar.gz
sigen-6d6ca27fbde34088fbfd8720a1306238f0336ad2.tar.xz
sigen-6d6ca27fbde34088fbfd8720a1306238f0336ad2.zip
Accept the click if the index is enabled, not selectable
-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())