Commit f66e3b16 authored by Peter Simonsson's avatar Peter Simonsson
Browse files

Remove padding of servergroup sort index in config

It's not needed for the function of the application just purely for
cosmetic reasons in the config file. Also it breaks config for encodings
and spell check.
parent 682f2420
......@@ -814,10 +814,6 @@ void Application::saveOptions(bool updateGUI)
index = 0;
int index2 = 0;
int index3 = 0;
int width = 0;
for(auto it = serverGroupHash.cbegin(), end = serverGroupHash.cend(); it != end; ++it)
if(width < it.key()) width = it.key();
width = QString::number(width).length();
QStringList servers;
QStringList channels;
QStringList channelHistory;
......@@ -870,7 +866,7 @@ void Application::saveOptions(bool updateGUI)
QString sgn = QStringLiteral("ServerGroup %1").arg(QString::number(index).rightJustified(width,QLatin1Char('0')));
QString sgn = QStringLiteral("ServerGroup %1").arg(index);
KConfigGroup cgServerGroup(KSharedConfig::openConfig()->group(sgn));
cgServerGroup.writeEntry("Name", serverGroup->name());
cgServerGroup.writeEntry("Identity", serverGroup->identity()->getName());
Supports Markdown
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