Skip to content

Commit

Permalink
Fix collapse of layer nodes after double click
Browse files Browse the repository at this point in the history
  • Loading branch information
wonder-sk committed May 21, 2014
1 parent 66cecd7 commit bb7831f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/qgisapp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9449,7 +9449,7 @@ void QgisApp::showLayerProperties( QgsMapLayer *ml )
else
{
rlp = new QgsRasterLayerProperties( ml, mMapCanvas, this );
connect( rlp, SIGNAL( refreshLegend( QString, bool ) ), mLayerTreeView, SLOT( refreshLayerSymbology( QString ) ) );
// handled by rendererChanged() connect( rlp, SIGNAL( refreshLegend( QString, bool ) ), mLayerTreeView, SLOT( refreshLayerSymbology( QString ) ) );
}

rlp->exec();
Expand All @@ -9467,7 +9467,7 @@ void QgisApp::showLayerProperties( QgsMapLayer *ml )
else
{
vlp = new QgsVectorLayerProperties( vlayer, this );
connect( vlp, SIGNAL( refreshLegend( QString ) ), mLayerTreeView, SLOT( refreshLayerSymbology( QString ) ) );
// handled by rendererChanged() connect( vlp, SIGNAL( refreshLegend( QString ) ), mLayerTreeView, SLOT( refreshLayerSymbology( QString ) ) );
}

if ( vlp->exec() )
Expand Down
1 change: 1 addition & 0 deletions src/gui/layertree/qgslayertreeview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ QgsLayerTreeView::QgsLayerTreeView(QWidget *parent)
setAcceptDrops(true);
setDropIndicatorShown(true);
setEditTriggers(EditKeyPressed | SelectedClicked);
setExpandsOnDoubleClick(false); // normally used for other actions

setSelectionMode(ExtendedSelection);

Expand Down

0 comments on commit bb7831f

Please sign in to comment.