@@ -13424,20 +13424,7 @@ void QgisApp::showLayerProperties( QgsMapLayer *mapLayer )
13424
13424
13425
13425
if ( mapLayer->type() == QgsMapLayer::RasterLayer )
13426
13426
{
13427
- #if 0 // See note above about reusing this
13428
- QgsRasterLayerProperties *rlp = nullptr;
13429
- if ( rlp )
13430
- {
13431
- rlp->sync();
13432
- }
13433
- else
13434
- {
13435
- rlp = new QgsRasterLayerProperties( ml, mMapCanvas, this );
13436
- // handled by rendererChanged() connect( rlp, SIGNAL( refreshLegend( QString, bool ) ), mLayerTreeView, SLOT( refreshLayerSymbology( QString ) ) );
13437
- }
13438
- #else
13439
13427
QgsRasterLayerProperties *rasterLayerPropertiesDialog = new QgsRasterLayerProperties( mapLayer, mMapCanvas, this );
13440
- #endif
13441
13428
// Cannot use exec here due to raster transparency map tool:
13442
13429
// in order to pass focus to the canvas, the dialog needs to
13443
13430
// be hidden and shown in non-modal mode.
@@ -13469,20 +13456,7 @@ void QgisApp::showLayerProperties( QgsMapLayer *mapLayer )
13469
13456
{
13470
13457
QgsVectorLayer *vlayer = qobject_cast<QgsVectorLayer *>( mapLayer );
13471
13458
13472
- #if 0 // See note above about reusing this
13473
- QgsVectorLayerProperties *vlp = nullptr;
13474
- if ( vlp )
13475
- {
13476
- vlp->syncToLayer();
13477
- }
13478
- else
13479
- {
13480
- vlp = new QgsVectorLayerProperties( vlayer, this );
13481
- // handled by rendererChanged() connect( vlp, SIGNAL( refreshLegend( QString ) ), mLayerTreeView, SLOT( refreshLayerSymbology( QString ) ) );
13482
- }
13483
- #else
13484
13459
QgsVectorLayerProperties *vectorLayerPropertiesDialog = new QgsVectorLayerProperties( vlayer, this );
13485
- #endif
13486
13460
Q_FOREACH ( QgsMapLayerConfigWidgetFactory *factory, mMapLayerPanelFactories )
13487
13461
{
13488
13462
vectorLayerPropertiesDialog->addPropertiesPageFactory( factory );
0 commit comments