Commit 7594208b authored by Jan Möbius's avatar Jan Möbius

Don't explicitly add groups to ini files.

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@13957 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 12ba57a3
......@@ -507,7 +507,7 @@ void BSplineCurveSelectionPlugin::saveIniFile(INIFile& _ini, int _id) {
//==============================================================================================
void BSplineCurveSelectionPlugin::slotLoadSelection(const INIFile& _file) {
void BSplineCurveSelectionPlugin::slotLoadSelection(INIFile& _file) {
// Iterate over all B-spline curves in the scene and save
// the selections for all supported entity types
......@@ -550,11 +550,6 @@ void BSplineCurveSelectionPlugin::slotSaveSelection(INIFile& _file) {
// Create section for each object
// Append object name to section identifier
QString section = QString("BSplineCurveSelection") + "//" + o_it->name();
if(!_file.section_exists(section)) {
_file.add_section(section);
} else {
continue;
}
// Store control point selection
_file.add_entry(section, "ControlPointSelection", getControlPointSelection(o_it->id()));
......
......@@ -130,7 +130,7 @@ private slots:
void slotToggleSelection(QMouseEvent* _event, SelectionInterface::PrimitiveType _currentType, bool _deselect);
void slotVolumeLassoSelection(QMouseEvent* _event, SelectionInterface::PrimitiveType _currentType, bool _deselect);
void slotLoadSelection(const INIFile& _file);
void slotLoadSelection(INIFile& _file);
void slotSaveSelection(INIFile& _file);
void slotKeyShortcutEvent(int _key, Qt::KeyboardModifiers _modifiers);
......
......@@ -583,7 +583,7 @@ void BSplineSurfaceSelectionPlugin::saveIniFile(INIFile& _ini, int _id) {
//==============================================================================================
void BSplineSurfaceSelectionPlugin::slotLoadSelection(const INIFile& _file) {
void BSplineSurfaceSelectionPlugin::slotLoadSelection(INIFile& _file) {
// Iterate over all B-spline surfaces in the scene and save
// the selections for all supported entity types
......@@ -630,11 +630,6 @@ void BSplineSurfaceSelectionPlugin::slotSaveSelection(INIFile& _file) {
// Create section for each object
// Append object name to section identifier
QString section = QString("BSplineSurfaceSelection") + "//" + o_it->name();
if(!_file.section_exists(section)) {
_file.add_section(section);
} else {
continue;
}
// Store control point selection
_file.add_entry(section, "ControlPointSelection", getControlPointSelection(o_it->id()));
......
......@@ -130,7 +130,7 @@ private slots:
void slotToggleSelection(QMouseEvent* _event, SelectionInterface::PrimitiveType _currentType, bool _deselect);
void slotVolumeLassoSelection(QMouseEvent* _event, SelectionInterface::PrimitiveType _currentType, bool _deselect);
void slotLoadSelection(const INIFile& _file);
void slotLoadSelection(INIFile& _file);
void slotSaveSelection(INIFile& _file);
void slotKeyShortcutEvent(int _key, Qt::KeyboardModifiers _modifiers);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment