Fix potential endless recursion in PlatformStatus::findLookAndFeelPackage()

The LookAndFeel entry does not exist in kdeglobals (it's called LookAndFeelPackage),
so when the configured LnF package is removed or renamed, the code will go to
endless loop because it never clears the configuration ine kdeglobals correctly.

REVIEW: 124371
This commit is contained in:
Dan Vrátil 2015-07-16 15:12:42 +02:00
parent 81dbda8e17
commit 2b31836bdc

View File

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