Bug 162616

Summary: "open file" dialog from one widget should not disable other widgets
Product: [Unmaintained] plasma4 Reporter: Sven-Erik Petermann <sverik>
Component: widget-frameAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: andresbajotierra, asraniel
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Sven-Erik Petermann 2008-05-25 21:19:44 UTC
Version:            (using KDE 4.0.4)
Installed from:    Fedora RPMs
OS:                Linux

In the configuration window of the Picture Frame widget the user can select an image to be displayed in the frame. There is a button that opens an Open File dialog, all other widgets including the Application Launcher are disabled until the Open File dialog is closed. It is impossible to open the K-menu and run a program (e.g. Dolphin or digiKam to find, browse or see image files) while the Open File dialog is open.
The problem is not specific for Picture Frame, it also shows when configuring a "Link to Application" type icon and browsing for the executable or selecting the "Work path" directory.
Comment 1 Alex Merry 2008-07-05 12:56:51 UTC
This is related to Bug 154690.  I'd imagine the same solution should work.

Would it be useful to have some sort of helper method for creating non-modal file dialogs in plasma?
Comment 2 Mario Oschwald 2008-07-11 01:19:11 UTC
The cause of this bug is that KUrlRequester opens it's fileDialog via the QDialog::exec () method, effectively making the FileDialog always modal. There exist two solutions two this problem then:

Get the relevant developer to allow a non modal usage of KUrlRequester or change the picture selection to another method. As recommended on IRC the nicest picture selection method (with previews in the dropwdown) is used by the wallpaper selector. Maybe that would be a nice alternative?
Comment 3 Dario Andres 2009-09-27 23:44:59 UTC
I sent a patch to reviewboard to enable the non-modal behavior of the KUrlRequester file-dialog: http://reviewboard.kde.org/r/1716/

Thanks
Comment 4 Dario Andres 2009-10-13 16:56:49 UTC
SVN commit 1034789 by darioandres:

- Use a non-modal file dialog in the image selection KUrlRequest
BUG: 162616



 M  +12 -4     imageSettings.ui  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1034789