Skip to content
Permalink
Browse files

Avoid defaulting to older path in style import dialog browse button

  • Loading branch information
nyalldawson committed Sep 3, 2018
1 parent 085fd24 commit 10c9d41269d26290be7b7e35bdc0e0dd4a01f6f2
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/gui/symbology/qgsstyleexportimportdialog.cpp
@@ -536,6 +536,7 @@ void QgsStyleExportImportDialog::importFileChanged( const QString &path )
if ( QFileInfo::exists( mFileName ) )
{
populateStyles( mTempStyle );
mImportFileWidget->setDefaultRoot( pathInfo.absolutePath() );
QgsSettings settings;
settings.setValue( QStringLiteral( "StyleManager/lastImportDir" ), pathInfo.absolutePath(), QgsSettings::Gui );
}

0 comments on commit 10c9d41

Please sign in to comment.
You can’t perform that action at this time.