Fix Dolphin not showing the unlocked container after first mount of an encrypted container

Review Request #101160 - Created April 20, 2011 and submitted

Information
Ozan Çağlayan
kdelibs
271156
Reviewers
solid
afiestas, lukas
When you *first* mount an encrypted container and enter the passphrase correctly, Dolphin is launched through SolidUiServer with:

kioclient exec %f

after the setupDone() signal is emitted. But the signal is emitted right after the async D-Bus call which mounts the slave filesystem,
causing the %f to be expanded to an empty string returned by UDisksStorageAccess::filePath(). This causes Dolphin to show the Home directory
instead of the just-mounted filesystem.

Encapsulate the "signal emitting" in else {} block to cure this problem.
Tested on KDE 4.6.2 with
 - an encrypted container
 - a normal usb flash disk

and works OK.
Lukáš Tinkl
Look good
Commit Hook
This review has been submitted with commit bdf3cc8ac328e907e88de36d698bba6a7f0e2c7f by Ozan Ça?layan.
Commit Hook
This review has been submitted with commit 6315b732cd8c775892d442c5709349e0f66d1f12 by Ozan Ça?layan.
Loading...