Commit 5fb7d152 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@13960 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 45ad7e0b
......@@ -1393,7 +1393,7 @@ void Core::resizeApplication(int _width, int _height ){
void Core::writeVersionNumbers(QString _filename){
INIFile ini;
INIFile ini;
if ( ! ini.connect(_filename,true) ) {
emit log(LOGERR,tr("Failed to connect to _ini file") + _filename);
......@@ -1401,7 +1401,6 @@ INIFile ini;
}
//add coreVersion
ini.add_section( "Core" );
if ( OpenFlipper::Options::isWindows() )
ini.add_entry( "Core" , "VersionWindows" , OpenFlipper::Options::coreVersion() );
else
......@@ -1409,7 +1408,6 @@ INIFile ini;
//add pluginVersions
for (uint i=0; i < plugins_.size(); i++){
ini.add_section( plugins_[i].name );
if ( OpenFlipper::Options::isWindows() )
ini.add_entry( plugins_[i].name , "VersionWindows" , plugins_[i].version );
......
......@@ -353,12 +353,6 @@ void Core::writeApplicationOptions(INIFile& _ini) {
//============================================================================
_ini.add_entry("Options","SlotDebugging",OpenFlipper::Options::doSlotDebugging() );
if ( !_ini.section_exists("Plugins") )
_ini.add_section("Plugins");
if ( !_ini.section_exists("Options") )
_ini.add_section("Options");
QString dir = OpenFlipperSettings().value("Core/CurrentDir").toString().toUtf8();
_ini.add_entry("Options","StartupDir",dir);
......@@ -610,7 +604,6 @@ void Core::writeIniFile(QString _filename,
if (QFile(file).exists()){
// Add a section for this object
sectionName = o_it->name();
ini.add_section( sectionName );
openFiles.push_back( sectionName );
//modify filename if relativePaths are wanted
......
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