Fix fallback from invalid L&F packages

The mechanism should have deleted the old key from the config if it was
invalid and then try again in order to get the default. As we were
deleting the wrong key (actually the value of the shell package key),
this was turning into a recursive loop. Deleting the correct key
obviously fixes this.

Thanks Bille for reporting!

Reviewed-by: Marco Martin

BUG:343510
This commit is contained in:
Sebastian Kügler 2015-01-29 13:35:31 +01:00
parent 2d7dfd2147
commit b931c00031

View File

@ -87,7 +87,7 @@ void PlatformStatus::findLookAndFeelPackage(bool sendSignal)
QStandardPaths::LocateDirectory);
if (path.isEmpty()) {
if (package != defaultPackage) {
group.deleteEntry(m_shellPackage);
group.deleteEntry("LookAndFeel");
findLookAndFeelPackage(sendSignal);
}