[Xfce4-commits] [xfce/thunar] 02/06: Avoid critical message upon	window close
    noreply at xfce.org 
    noreply at xfce.org
       
    Wed Jul 18 22:07:30 CEST 2018
    
    
  
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       x   f   c   e   -   4   .   1   4   
   in repository xfce/thunar.
commit 0f256d6df4118e71ed6d9124212a4fc5269f3d17
Author: Andre Miranda <andreldm at xfce.org>
Date:   Sat Jul 14 19:34:48 2018 -0300
    Avoid critical message upon window close
    
    Introduced by last commit
---
 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 ebe50af..4b53d5d 100644
--- a/thunar/thunar-window.c
+++ b/thunar/thunar-window.c
@@ -3447,7 +3447,8 @@ thunar_window_update_custom_actions (ThunarView   *view,
   folder = thunar_window_get_current_directory (window);
 
   /* leave if current directory is invalid */
-  if (!thunarx_file_info_is_directory (THUNARX_FILE_INFO (folder)))
+  if (folder != NULL &&
+      !thunarx_file_info_is_directory (THUNARX_FILE_INFO (folder)))
       return;
 
   /* load the menu provides from the provider factory */
-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.
    
    
More information about the Xfce4-commits
mailing list