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:
parent
81dbda8e17
commit
2b31836bdc
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user