[Xfce4-commits] [xfce/thunar] 01/01: Always jump to Home when ejecting a currently viewed device (Bug #16504)
noreply at xfce.org
noreply at xfce.org
Fri Mar 13 23:13:46 CET 2020
This is an automated email from the git hooks/post-receive script.
a l e x p u s h e d a c o m m i t t o b r a n c h m a s t e r
in repository xfce/thunar.
commit c5c3aae0864c73755324154b5f970283cf4829dd
Author: Theo Linkspfeifer <lastonestanding at tutanota.com>
Date: Fri Mar 13 22:56:14 2020 +0100
Always jump to Home when ejecting a currently viewed device (Bug #16504)
---
thunar/thunar-window.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/thunar/thunar-window.c b/thunar/thunar-window.c
index 5f7b78c..0c46c38 100644
--- a/thunar/thunar-window.c
+++ b/thunar/thunar-window.c
@@ -3711,7 +3711,8 @@ thunar_window_device_pre_unmount (ThunarDeviceMonitor *device_monitor,
return;
/* check if the file is the current directory or an ancestor of the current directory */
- if (thunar_file_is_gfile_ancestor (window->current_directory, root_file))
+ if (g_file_equal (thunar_file_get_file (window->current_directory), root_file)
+ || thunar_file_is_gfile_ancestor (window->current_directory, root_file))
{
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
/* change to the home folder */
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list