Skip to content

Commit

Permalink
Clear previously imported symbols when style manager import file is c…
Browse files Browse the repository at this point in the history
…hanged

Avoids symbols from a different file from being imported with tags/
etc from a newly selected file.
  • Loading branch information
nyalldawson committed Sep 3, 2018
1 parent 10c9d41 commit 5a87567
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/gui/symbology/qgsstyleexportimportdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -535,6 +535,7 @@ void QgsStyleExportImportDialog::importFileChanged( const QString &path )
mSymbolTags->setText( tag );
if ( QFileInfo::exists( mFileName ) )
{
mTempStyle->clear();
populateStyles( mTempStyle );
mImportFileWidget->setDefaultRoot( pathInfo.absolutePath() );
QgsSettings settings;
Expand Down Expand Up @@ -594,6 +595,7 @@ void QgsStyleExportImportDialog::httpFinished()
{
mTempFile->flush();
mTempFile->close();
mTempStyle->clear();
populateStyles( mTempStyle );
}
}
Expand Down

0 comments on commit 5a87567

Please sign in to comment.