Skip to content
Permalink
Browse files
Fix collapse of layer nodes after double click
  • Loading branch information
wonder-sk committed May 21, 2014
1 parent 66cecd7 commit bb7831fea03f48c7b7b398b012501b391080cd08
Showing with 3 additions and 2 deletions.
  1. +2 −2 src/app/qgisapp.cpp
  2. +1 −0 src/gui/layertree/qgslayertreeview.cpp
@@ -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();
@@ -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() )
@@ -18,6 +18,7 @@ QgsLayerTreeView::QgsLayerTreeView(QWidget *parent)
setAcceptDrops(true);
setDropIndicatorShown(true);
setEditTriggers(EditKeyPressed | SelectedClicked);
setExpandsOnDoubleClick(false); // normally used for other actions

setSelectionMode(ExtendedSelection);

0 comments on commit bb7831f

Please sign in to comment.