Thunar: patch file is valid test
See http://tuxdiary.com/2016/06/10/fix-thunar-crash-move-rename/
This commit is contained in:
parent
f781080ddd
commit
cf14698c60
2 changed files with 28 additions and 1 deletions
27
srcpkgs/Thunar/patches/fix-file_is_valid.patch
Normal file
27
srcpkgs/Thunar/patches/fix-file_is_valid.patch
Normal file
|
@ -0,0 +1,27 @@
|
|||
From 43a38da9e220286be9faedf44e3339d8d1422606 Mon Sep 17 00:00:00 2001
|
||||
From: Harald Judt <h.judt@gmx.at>
|
||||
Date: Wed, 17 Feb 2016 17:47:38 +0100
|
||||
Subject: Check if a thunar file is still valid before reloading
|
||||
|
||||
---
|
||||
thunar/thunar-file.c | 4 +++-
|
||||
1 file changed, 3 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/thunar/thunar-file.c b/thunar/thunar-file.c
|
||||
index 3262dfb..002c980 100644
|
||||
--- thunar/thunar-file.c
|
||||
+++ thunar/thunar-file.c
|
||||
@@ -3920,7 +3920,9 @@ thunar_file_unwatch (ThunarFile *file)
|
||||
gboolean
|
||||
thunar_file_reload (ThunarFile *file)
|
||||
{
|
||||
- _thunar_return_if_fail (THUNAR_IS_FILE (file));
|
||||
+ /* if the file has already been destroyed, break here */
|
||||
+ if (!THUNAR_IS_FILE (file))
|
||||
+ return FALSE;
|
||||
|
||||
/* clear file pxmap cache */
|
||||
thunar_icon_factory_clear_pixmap_cache (file);
|
||||
--
|
||||
2.7.1
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
# Template file for 'Thunar'
|
||||
pkgname=Thunar
|
||||
version=1.6.10
|
||||
revision=2
|
||||
revision=3
|
||||
build_style=gnu-configure
|
||||
configure_args="--enable-gio-unix --enable-dbus --enable-gudev
|
||||
--enable-exif --enable-pcre --disable-static --enable-notifications"
|
||||
|
|
Loading…
Reference in a new issue