]> cloud.milkyroute.net Git - dolphin.git/commit
Show home folder if needed after unmounting mounted disk
authorNate Graham <nate@kde.org>
Tue, 13 Oct 2020 17:51:59 +0000 (11:51 -0600)
committerElvis Angelaccio <elvis.angelaccio@kde.org>
Fri, 23 Oct 2020 17:00:09 +0000 (17:00 +0000)
commitae1d441dacef7e52984201abdc9a918ce060021c
treea8ebd2496dec8843025cccb36ac0696c8f9ab66b
parent1501825d447bf0d316750368d8579a95a38ce537
Show home folder if needed after unmounting mounted disk

Right now, when you unmount a device that any active view containers are
displaying, nothing in the view changes. As a result, it's possible to
try to navigate to files or folders in that view, which cannot be done
because the disk that the files or folders are located on has been
unmounted!

With this commit, we detect that case and switch the view containers
to show the home folder after the disk whose contents they are displaying
gets unmounted.

BUG: 158934
FIXED-IN: 20.12
src/dolphinmainwindow.cpp
src/dolphinmainwindow.h
src/panels/places/placesitemmodel.cpp
src/panels/places/placesitemmodel.h
src/panels/places/placespanel.cpp
src/panels/places/placespanel.h