Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Remember last raster calc output dir
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@14882 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Dec 10, 2010
1 parent 90271df commit 213de18
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/app/qgsrastercalcdialog.cpp
Expand Up @@ -212,11 +212,13 @@ void QgsRasterCalcDialog::on_mButtonBox_accepted()
//save last output format
QSettings s;
s.setValue( "/RasterCalculator/lastOutputFormat", QVariant( mOutputFormatComboBox->currentText() ) );
s.setValue( "/RasterCalculator/lastOutputDir", QVariant( QFileInfo( mOutputLayerLineEdit->text() ).absolutePath() ) );
}

void QgsRasterCalcDialog::on_mOutputLayerPushButton_clicked()
{
QString saveFileName = QFileDialog::getSaveFileName( 0, tr( "Enter result file" ) );
QSettings s;
QString saveFileName = QFileDialog::getSaveFileName( 0, tr( "Enter result file" ), s.value( "/RasterCalculator/lastOutputDir" ).toString() );
if ( !saveFileName.isNull() )
{
mOutputLayerLineEdit->setText( saveFileName );
Expand Down

0 comments on commit 213de18

Please sign in to comment.