Skip to content
Permalink
Browse files
Remember last raster calc output dir
git-svn-id: http://svn.osgeo.org/qgis/trunk@14882 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Dec 10, 2010
1 parent 70065ff commit cd5ca42f3a8ea896fd8c7d98d2b7853fa3140665
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/app/qgsrastercalcdialog.cpp
@@ -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 );

0 comments on commit cd5ca42

Please sign in to comment.