[dolphin] [Bug 427619] bad startup behaviour when last visited removable media was not mounted

Elvis Angelaccio bugzilla_noreply at kde.org
Fri Oct 23 18:00:45 BST 2020


https://bugs.kde.org/show_bug.cgi?id=427619

Elvis Angelaccio <elvis.angelaccio at kde.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED
      Latest Commit|                            |https://invent.kde.org/syst
                   |                            |em/dolphin/commit/c733b3aa9
                   |                            |787a618a0ce5bb03b3fc731f566
                   |                            |3b21
   Version Fixed In|                            |20.12

--- Comment #12 from Elvis Angelaccio <elvis.angelaccio at kde.org> ---
Git commit c733b3aa9787a618a0ce5bb03b3fc731f5663b21 by Elvis Angelaccio, on
behalf of Nate Graham.
Committed on 23/10/2020 at 17:00.
Pushed by elvisangelaccio into branch 'master'.

Don't session-restore invalid paths

When session restore is populating the main window, it's unconditional;
you'll get whatever was there before. This can be a problem if any of
those things are now missing. For example, maybe you were browsing files
on a removable disk, then quit Dolphin, and finally removed the disk. The
next time you launch Dolphin again, it will try to show you the
view from the now-missing removable disk.

To prevent this, we now look at all the URLs in all of the view
containers that were created after session-restore has finished doing
its thing; if any of them are invalid local URLs, we change the URL to
the home folder instead to avoid showing the user a view with an invalid
location in it.
FIXED-IN: 20.12

M  +14   -0    src/dolphinmainwindow.cpp
M  +6    -0    src/dolphinmainwindow.h
M  +4    -0    src/main.cpp

https://invent.kde.org/system/dolphin/commit/c733b3aa9787a618a0ce5bb03b3fc731f5663b21

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the kfm-devel mailing list