From 6d6ca27fbde34088fbfd8720a1306238f0336ad2 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Thu, 21 May 2009 13:37:38 -0400 Subject: Accept the click if the index is enabled, not selectable --- sigmodr/SigmodrUI.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sigmodr/SigmodrUI.cpp') 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()) -- cgit