https://bugs.kde.org/show_bug.cgi?id=450702
Bug ID: 450702
Summary: QtQuickDialogWrapper::exec is an anti pattern that
allows the user to break most apps that use it
Product: frameworks-knewstuff
Version: unspecified
Platform: Other
OS: Linux
Status: REPORTED
Severity: normal
Priority: NOR
Component: general
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
Target Milestone: ---
SUMMARY
STEPS TO REPRODUCE
1. open parley
2. click on >> get new collections <<
3. close parley
4. observe the kns window still being open
5. close the kns window
6. crash
1. open systemsettings
2. open global theme kcm
3. click >> get new global themes <<
4. close systemsettings
5. observe ksn window closing
6. try to start systemsettings again - you can't it's still running without
window 🤷♂️
SOFTWARE/OS VERSIONS
masterino on linux
ADDITIONAL INFORMATION
Nested eventloops are the devil. I would suggest to deprecate ::exec and drop
it with kf6 entirely. Porting away from exec shouldn't be too much of a
challenge, the few apps I've looked at mostly seem to reload their state when
the dialog closes, that can easily be done in a lambda slot.
--
You are receiving this mail because:
You are watching all bug changes.