]> cloud.milkyroute.net Git - dolphin.git/commit
Don't block unmounting when terminal panel's cwd is the mountpoint
authorMiklos Marton <martonmiklosqdev@gmail.com>
Thu, 12 Oct 2017 21:17:51 +0000 (23:17 +0200)
committerElvis Angelaccio <elvis.angelaccio@kde.org>
Thu, 12 Oct 2017 21:21:49 +0000 (23:21 +0200)
commitbd47eb2e6d80315115bb3f58987162fcb4911b10
treed51172264a047f02e235cc2e78371330336e4792
parent1ad3b7775ec7388352d3a02c704062baa5d0aca3
Don't block unmounting when terminal panel's cwd is the mountpoint

When unmounting a removable media Dolphin checks if there are
some files open on the device before performing the unmount.
If the terminal window in dolphin is open and the to be unmounted path is open,
 the unmount process will be blocked.

This patch sets the terminal window current path to the home directory upon unmount request
 if the terminal directory is set to the mount path.

The unmount request could came from two sources:

    The user could hit right click on the media in the dolphin's places panel and hit unmount.
    The user could request an unmount from the indicator applet

This patch was originally written by Arjun AK for the kdelibs4 version
of Dolphin: https://git.reviewboard.kde.org/r/121613/

BUG: 158264
FIXED-IN: 17.11.80

Differential Revision: https://phabricator.kde.org/D7847
12 files changed:
src/dolphinmainwindow.cpp
src/dolphinmainwindow.h
src/panels/places/placesitem.cpp
src/panels/places/placesitem.h
src/panels/places/placesitemmodel.cpp
src/panels/places/placesitemmodel.h
src/panels/places/placesitemsignalhandler.cpp
src/panels/places/placesitemsignalhandler.h
src/panels/places/placespanel.cpp
src/panels/places/placespanel.h
src/panels/terminal/terminalpanel.cpp
src/panels/terminal/terminalpanel.h