summaryrefslogtreecommitdiff
path: root/packages/xfce/xfdesktop
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2008-11-03 16:22:54 -0200
committerOtavio Salvador <otavio@ossystems.com.br>2008-11-05 09:14:23 -0200
commite196c018e07075938b65813026e0119cebbdc139 (patch)
tree7065e1b9965cb2618488384ce39c9ab1074bb293 /packages/xfce/xfdesktop
parentbe356ca2083a751632c2ade2da2cdcf7c4d794fe (diff)
xfdesktop: fix segfault when removable icons are disabled
Diffstat (limited to 'packages/xfce/xfdesktop')
-rw-r--r--packages/xfce/xfdesktop/fix-segfault-when-removable-icons-are-disabled.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/packages/xfce/xfdesktop/fix-segfault-when-removable-icons-are-disabled.patch b/packages/xfce/xfdesktop/fix-segfault-when-removable-icons-are-disabled.patch
new file mode 100644
index 0000000000..af5bc4cd96
--- /dev/null
+++ b/packages/xfce/xfdesktop/fix-segfault-when-removable-icons-are-disabled.patch
@@ -0,0 +1,16 @@
+diff -Nur xfdesktop-4.4.2-BKP/src/xfdesktop-file-icon-manager.c xfdesktop-4.4.2/src/xfdesktop-file-icon-manager.c
+--- xfdesktop-4.4.2-BKP/src/xfdesktop-file-icon-manager.c 2008-11-03 16:19:46.000000000 -0200
++++ xfdesktop-4.4.2/src/xfdesktop-file-icon-manager.c 2008-11-03 16:20:45.000000000 -0200
+@@ -2046,8 +2046,10 @@
+
+ g_hash_table_foreach(fmanager->priv->icons,
+ file_icon_hash_write_icons, rcfile);
+- g_hash_table_foreach(fmanager->priv->removable_icons,
+- file_icon_hash_write_icons, rcfile);
++ if(fmanager->priv->show_removable_media) {
++ g_hash_table_foreach(fmanager->priv->removable_icons,
++ file_icon_hash_write_icons, rcfile);
++ }
+ g_hash_table_foreach(fmanager->priv->special_icons,
+ file_icon_hash_write_icons, rcfile);
+