Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7605 in orxonox.OLD for branches/qt_gui/src/orxonox.cc


Ignore:
Timestamp:
May 12, 2006, 10:30:49 AM (18 years ago)
Author:
bensch
Message:

better saveability

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/qt_gui/src/orxonox.cc

    r7601 r7605  
    421421
    422422  IniFilePrefsReader ini(ResourceManager::homeDirCheck(DEFAULT_CONFIG_FILE));
     423  Preferences::getInstance()->setUserIni(ResourceManager::homeDirCheck(DEFAULT_CONFIG_FILE));
    423424
    424425  prefs.parse(argc, argv);
     
    498499
    499500    // starting the GUI
    500     OrxGui::Gui* gui = new OrxGui::QtGui(argc, argv);
    501     gui->startGui();
    502 
    503     if (gui->getState() & OrxGui::Gui::Quitting)
     501    OrxGui::QtGui gui(argc, argv);
     502    gui.startGui();
     503
     504    if (gui.getState() & OrxGui::Gui::Quitting)
    504505      return 0;
    505506
    506     delete gui;
    507507  }
    508508
Note: See TracChangeset for help on using the changeset viewer.