Summary: | widget trashcan right click to empty disables plasma panel/desktop | ||
---|---|---|---|
Product: | [Unmaintained] plasma4 | Reporter: | SlashDevDsp <slashdevdsp> |
Component: | widget-trashcan | Assignee: | Plasma Bugs List <plasma-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | aseigo, asraniel, caionnew, cfeck |
Priority: | NOR | Keywords: | junior-jobs |
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: | Implements the sugested fix in the TODO ,using a non modal messagebox |
Description
SlashDevDsp
2009-07-10 04:58:34 UTC
yes, a modal dialog will (surprise) disable access to other parts of the application, in this case plasma-desktop. such dialogs need to be found and made non-modal. Confirmed in KDE SC 4.5 Beta 1. Created attachment 60544 [details]
Implements the sugested fix in the TODO ,using a non modal messagebox
I implemented the fix using the suggested API in the TODO, i had some problems creating a dev environment for testing this more but it compiles and it should work
please submit this patch to https://git.reviewboard.kde.org or else it will just get lost. thank you Git commit 062717662e473bd7b0affc15070aa43fa16c5f05 by Aaron Seigo. Committed on 22/11/2011 at 08:38. Pushed by aseigo into branch 'master'. make the confirmation dialog non-modal BUG:199640 M +65 -60 plasma/desktop/applets/trash/trash.cpp M +11 -10 plasma/desktop/applets/trash/trash.h http://commits.kde.org/kde-workspace/062717662e473bd7b0affc15070aa43fa16c5f05 note that the patch as submitted didn't actually fix the problem -> you need to pass NoExec and set the dialog to be not modal. for completeness, a pointer (guarded by QWeakPointer, preferably) to the dialog needs to be kept so that if the user selects the action again, the same dialog is brought up (instead of spawning multiple dialogs) |