Skip to content
Permalink
Browse files

Clear previously imported symbols when style manager import file is c…

…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 5a875676fb5ceb434f3bb4d61b95e2f683964f22
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/gui/symbology/qgsstyleexportimportdialog.cpp
@@ -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;
@@ -594,6 +595,7 @@ void QgsStyleExportImportDialog::httpFinished()
{
mTempFile->flush();
mTempFile->close();
mTempStyle->clear();
populateStyles( mTempStyle );
}
}

0 comments on commit 5a87567

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