[gnome-commander] Crash opening properties window on certain objects, bug #683087



commit 491225f59f605155990dd66502fdee5d2ce375d7
Author: Puux <puuxmine gmail com>
Date:   Sun Jul 17 15:16:47 2016 +0300

    Crash opening properties window on certain objects, bug #683087

 src/dialogs/gnome-cmd-file-props-dialog.cc |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/dialogs/gnome-cmd-file-props-dialog.cc b/src/dialogs/gnome-cmd-file-props-dialog.cc
index 2fe4c82..0a0da73 100644
--- a/src/dialogs/gnome-cmd-file-props-dialog.cc
+++ b/src/dialogs/gnome-cmd-file-props-dialog.cc
@@ -489,7 +489,8 @@ inline GtkWidget *create_properties_tab (GnomeCmdFilePropsDialogPrivate *data)
 
     data->size_label = label;
 
-    gcmd_tags_bulk_load (data->f);
+    if (data->f->info->type != GNOME_VFS_FILE_TYPE_CHARACTER_DEVICE) 
+        gcmd_tags_bulk_load (data->f);
 
     if (data->f->metadata)
     {
@@ -559,7 +560,7 @@ static GtkTreeModel *create_and_fill_model (GnomeCmdFile *f)
                                                   G_TYPE_STRING,
                                                   G_TYPE_STRING);
 
-    if (!gcmd_tags_bulk_load (f))
+    if (f->info->type == GNOME_VFS_FILE_TYPE_CHARACTER_DEVICE || !gcmd_tags_bulk_load (f))
         return GTK_TREE_MODEL (treestore);
 
     GnomeCmdTagClass prev_tagclass = TAG_NONE_CLASS;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]