Skip to content

Commit dc77d58

Browse files
committedFeb 17, 2015
Hide logically dead code
1 parent ceceebd commit dc77d58

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed
 

‎src/app/qgisapp.cpp

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10057,7 +10057,8 @@ void QgisApp::showLayerProperties( QgsMapLayer *ml )
1005710057

1005810058
if ( ml->type() == QgsMapLayer::RasterLayer )
1005910059
{
10060-
QgsRasterLayerProperties *rlp = NULL; // See note above about reusing this
10060+
#if 0 // See note above about reusing this
10061+
QgsRasterLayerProperties *rlp = NULL;
1006110062
if ( rlp )
1006210063
{
1006310064
rlp->sync();
@@ -10067,6 +10068,9 @@ void QgisApp::showLayerProperties( QgsMapLayer *ml )
1006710068
rlp = new QgsRasterLayerProperties( ml, mMapCanvas, this );
1006810069
// handled by rendererChanged() connect( rlp, SIGNAL( refreshLegend( QString, bool ) ), mLayerTreeView, SLOT( refreshLayerSymbology( QString ) ) );
1006910070
}
10071+
#else
10072+
QgsRasterLayerProperties *rlp = new QgsRasterLayerProperties( ml, mMapCanvas, this );
10073+
#endif
1007010074

1007110075
rlp->exec();
1007210076
delete rlp; // delete since dialog cannot be reused without updating code
@@ -10075,7 +10079,8 @@ void QgisApp::showLayerProperties( QgsMapLayer *ml )
1007510079
{
1007610080
QgsVectorLayer* vlayer = qobject_cast<QgsVectorLayer *>( ml );
1007710081

10078-
QgsVectorLayerProperties *vlp = NULL; // See note above about reusing this
10082+
#if 0 // See note above about reusing this
10083+
QgsVectorLayerProperties *vlp = NULL;
1007910084
if ( vlp )
1008010085
{
1008110086
vlp->syncToLayer();
@@ -10085,6 +10090,9 @@ void QgisApp::showLayerProperties( QgsMapLayer *ml )
1008510090
vlp = new QgsVectorLayerProperties( vlayer, this );
1008610091
// handled by rendererChanged() connect( vlp, SIGNAL( refreshLegend( QString ) ), mLayerTreeView, SLOT( refreshLayerSymbology( QString ) ) );
1008710092
}
10093+
#else
10094+
QgsVectorLayerProperties *vlp = new QgsVectorLayerProperties( vlayer, this );
10095+
#endif
1008810096

1008910097
if ( vlp->exec() )
1009010098
{

0 commit comments

Comments
 (0)
Please sign in to comment.