Delete names of removed desktops from kwinrc

Reviewers: #kwin, davidedmundson

Reviewed By: #kwin, davidedmundson

Subscribers: kwin

Tags: #kwin

Differential Revision: https://phabricator.kde.org/D18372
This commit is contained in:
Vlad Zagorodniy 2019-01-18 23:42:02 +02:00
parent 253f954e31
commit fbb30bb863

View file

@ -756,7 +756,7 @@ void VirtualDesktopManager::save()
for (int i = count() + 1; group.hasKey(QStringLiteral("Id_%1").arg(i)); i++) {
group.deleteEntry(QStringLiteral("Id_%1").arg(i));
group.deleteEntry(QStringLiteral("Name_").arg(i));
group.deleteEntry(QStringLiteral("Name_%1").arg(i));
}
group.writeEntry("Number", count());