Skip to content

Commit ae75e9b

Browse files
mhugentmarco
authored and
marco
committed
Fix for ticket #4308
1 parent 8784567 commit ae75e9b

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/plugins/interpolation/qgsinterpolationdialog.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ void QgsInterpolationDialog::on_buttonBox_accepted()
195195
mNumberOfRowsSpinBox->value(), mCellsizeXSpinBox->value(), mCellSizeYSpinBox->value() );
196196
if ( theWriter.writeFile( true ) == 0 )
197197
{
198-
mIface->addRasterLayer( fileName, "Interpolation" );
198+
mIface->addRasterLayer( fileName, QFileInfo( fileName ).baseName() );
199199
accept();
200200
}
201201

src/plugins/raster_terrain_analysis/qgsrasterterrainanalysisplugin.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
#include "qgstotalcurvaturefilter.h"
2727
#include "qgsrasterterrainanalysisdialog.h"
2828
#include <QAction>
29+
#include <QFileInfo>
2930
#include <QProgressDialog>
3031

3132
static const QString name_ = QObject::tr( "Raster Terrain Analysis plugin" );
@@ -109,7 +110,7 @@ void QgsRasterTerrainAnalysisPlugin::run()
109110
delete filter;
110111
if ( d.addLayerToProject() )
111112
{
112-
mIface->addRasterLayer( outputFile, d.selectedAnalysisMethod() );
113+
mIface->addRasterLayer( outputFile, QFileInfo( outputFile ).baseName() );
113114
}
114115
}
115116
}

0 commit comments

Comments
 (0)