Skip to content
Permalink
Browse files

More vector layer property leak fixes

  • Loading branch information
nyalldawson committed Sep 1, 2015
1 parent d7ab102 commit 8c716f678a7e7de4e5f10639354fdc31539454dc
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/app/qgsvectorlayerproperties.cpp
  2. +1 −1 src/gui/symbology-ng/qgsrendererv2widget.cpp
@@ -169,7 +169,7 @@ QgsVectorLayerProperties::QgsVectorLayerProperties(
if ( layer->dataProvider()->isSaveAndLoadStyleToDBSupported() )
{
//for loading
mLoadStyleMenu = new QMenu();
mLoadStyleMenu = new QMenu( this );
mLoadStyleMenu->addAction( tr( "Load from file..." ) );
mLoadStyleMenu->addAction( tr( "Load from database" ) );
//mActionLoadStyle->setContextMenuPolicy( Qt::PreventContextMenu );
@@ -26,7 +26,7 @@
QgsRendererV2Widget::QgsRendererV2Widget( QgsVectorLayer* layer, QgsStyleV2* style )
: QWidget(), mLayer( layer ), mStyle( style )
{
contextMenu = new QMenu( "Renderer Options " );
contextMenu = new QMenu( "Renderer Options", this );

mCopyAction = contextMenu->addAction( tr( "Copy" ), this, SLOT( copy() ) );
mCopyAction->setShortcut( QKeySequence( QKeySequence::Copy ) );

0 comments on commit 8c716f6

Please sign in to comment.
You can’t perform that action at this time.