Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Save for external ressource dialog RelativeStorage config parameter #45072

Merged
merged 2 commits into from
Sep 17, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/gui/editorwidgets/qgsexternalresourceconfigdlg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -178,11 +178,11 @@ QVariantMap QgsExternalResourceConfigDlg::config()
cfg.insert( QStringLiteral( "DefaultRoot" ), mRootPath->text() );

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

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