Skip to content

Commit

Permalink
Avoid defaulting to older path in style import dialog browse button
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Sep 3, 2018
1 parent 085fd24 commit 10c9d41
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/gui/symbology/qgsstyleexportimportdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
}
Expand Down

0 comments on commit 10c9d41

Please sign in to comment.