Skip to content

Commit

Permalink
core: Do not save back old configuration file version information
Browse files Browse the repository at this point in the history
  • Loading branch information
trollixx committed Nov 19, 2015
1 parent e1e4ddc commit e7a9736
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/core/settings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ void Settings::load()
// Avoid curly braces (QTBUG-885)
QUuid::createUuid().toString().mid(1, 36)).toString();
version = m_settings->value(QStringLiteral("version"),
QCoreApplication::applicationVersion()).toString();
QCoreApplication::applicationVersion()).toString();
m_settings->endGroup();
}

Expand Down Expand Up @@ -171,11 +171,10 @@ void Settings::save()

m_settings->beginGroup(GroupInternal);
m_settings->setValue(QStringLiteral("install_id"), installId);
m_settings->setValue(QStringLiteral("version"), version);
m_settings->setValue(QStringLiteral("version"), QCoreApplication::applicationVersion());
m_settings->endGroup();

m_settings->sync();

emit updated();
}

0 comments on commit e7a9736

Please sign in to comment.