[Xfce4-commits] [xfce/thunar] 01/13: Remove unmounted files from history when going back or forward
noreply at xfce.org
noreply at xfce.org
Tue May 12 09:58:14 CEST 2015
This is an automated email from the git hooks/post-receive script.
hjudt pushed a commit to branch master
in repository xfce/thunar.
commit bf52f14ac84adf396cb007222017a2188e18d09b
Author: Harald Judt <h.judt at gmx.at>
Date: Thu May 7 20:57:23 2015 +0200
Remove unmounted files from history when going back or forward
When trying to go back or forward in history, and the target location
has been unmounted, remove the entry from the history.
---
thunar/thunar-history.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/thunar/thunar-history.c b/thunar/thunar-history.c
index e787d38..29ce2a0 100644
--- a/thunar/thunar-history.c
+++ b/thunar/thunar-history.c
@@ -375,7 +375,7 @@ thunar_history_go_back (ThunarHistory *history,
/* check if the directory still exists */
directory = thunar_file_get (goto_file, NULL);
- if (directory == NULL)
+ if (directory == NULL || ! thunar_file_is_mounted (directory))
{
thunar_history_error_not_found (goto_file, NULL);
@@ -456,7 +456,7 @@ thunar_history_go_forward (ThunarHistory *history,
/* check if the directory still exists */
directory = thunar_file_get (goto_file, NULL);
- if (directory == NULL)
+ if (directory == NULL || ! thunar_file_is_mounted (directory))
{
thunar_history_error_not_found (goto_file, NULL);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list