Skip to content

Commit

Permalink
Ensure selected storage mode and relative path options are reinstated
Browse files Browse the repository at this point in the history
reverts part of b1fa333
  • Loading branch information
DelazJ authored and nyalldawson committed Oct 6, 2021
1 parent 77c831e commit 52126bc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/gui/editorwidgets/qgsexternalresourceconfigdlg.cpp
Expand Up @@ -178,11 +178,10 @@ QVariantMap QgsExternalResourceConfigDlg::config()
cfg.insert( QStringLiteral( "DefaultRoot" ), mRootPath->text() );

// Save Storage Mode
cfg.insert( QStringLiteral( "StorageMode" ), !mStorageType->currentIndex() ?
mStorageButtonGroup->checkedId() : QgsFileWidget::GetFile );
cfg.insert( QStringLiteral( "StorageMode" ), mStorageButtonGroup->checkedId() );

// Save Relative Paths option
if ( !mStorageType->currentIndex() && mRelativeGroupBox->isChecked() )
if ( mRelativeGroupBox->isChecked() )
{
cfg.insert( QStringLiteral( "RelativeStorage" ), mRelativeButtonGroup->checkedId() );
}
Expand Down

0 comments on commit 52126bc

Please sign in to comment.