Bug report #17377

QgsSettings::beginGroup() is superior to QgsSettings::Section

Added by Borys Jurgiel over 6 years ago. Updated over 6 years ago.

Status:Closed
Priority:Normal
Assignee:Nathan Woodrow
Category:Unknown
Affected QGIS version:master Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:duplicate
Crashes QGIS or corrupts data:No Copied to github as #:25274

Description

Just a simple example:

QgsSettings settings;
settings.begingGroup( "my_group" );
settings.setValue( "my_key", 7, QgsSettings::Section::App )

results with:


[my_group]
app/key=7

Shouldn't beginGroup() optionally accept QgsSettings::Section? Like that:


void beginGroup( const QString &prefix, const QgsSettings::Section section = QgsSettings::Section::NoSection );

I marked it as a bug, as it causes rather unexpected results and makes beginGroup() more or less useless.

History

#1 Updated by Borys Jurgiel over 6 years ago

  • Resolution set to duplicate
  • Status changed from Open to Closed

Also available in: Atom PDF