Otherwise the CopyJopb thead will be killed if the user clicks the "OK"
button, because kcmshell5 quits. Thus the icon won't get saved.
As the face file is limited to a width of 600px it shouldn't block too
long.
Details
- Reviewers
- None
- Group Reviewers
Plasma
Changing the face icon and clicking "OK" actually changes ~/.face. It didn't change before.
Diff Detail
- Repository
- R128 User Manager
- Branch
- master
- Lint
No Linters Available - Unit
No Unit Test Coverage
I think this is just working around the fact that a KCM has no way of postponing the closing/deletion of the dialog when OK is clicked. We have the issue of OK not saving settings properly in various other places that use jobs, too.
Yes this is just a workaround, as there is currently no such way.
It would be nice if KCModule::save() would return a list of KJob's to wait for, but this is not possible without API breakage. Maybe something like "KCModule::registerSavingJob(KJob *job)" and "QList<KJob> KCModule::getSaveingJobs()" ? Then KCMultiDialog could postpone closing the dialog until all jobs are finished, and maybe show a progressdialog if it lasts too long? This would need a version bump I guess..