Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7630 in orxonox.OLD for branches/qt_gui


Ignore:
Timestamp:
May 17, 2006, 8:11:27 AM (19 years ago)
Author:
rennerc
Message:

save should work now

Location:
branches/qt_gui/src/lib
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/qt_gui/src/lib/gui/gui_saveable.cc

    r7608 r7630  
    6363  void Saveable::save()
    6464  {
    65     Preferences::getInstance()->setMultiType(this->group->getName(), this->getName(), this->value(), true);
     65    Preferences::getInstance()->setMultiType(this->group->getName(), this->getName(), this->value() );
    6666    PRINTF(4)("Saved to '%s' of group '%s' value '%s'\n", this->getName(), this->group->getName(), this->value().getCString());
    6767  }
  • branches/qt_gui/src/lib/parser/preferences/ini_file_prefs_reader.cc

    r7256 r7630  
    2828  IniParser iniParser;
    2929
     30 
     31  Preferences* prefs = Preferences::getInstance();
     32 
     33  prefs->setUserIni( fileName );
     34 
    3035  if ( !iniParser.readFile( fileName ) )
    3136    return;
    32 
    33   Preferences* prefs = Preferences::getInstance();
    3437
    3538  iniParser.firstSection();
  • branches/qt_gui/src/lib/util/preferences.cc

    r7629 r7630  
    259259  IniParser iniParser(this->fileName);
    260260
    261   if ( !iniParser.isOpen() )
    262     return false;
    263 
    264261  std::list<prefSection>::iterator it = data.begin();
    265262  bool didChanges = false;
Note: See TracChangeset for help on using the changeset viewer.