aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/fs/namespace.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/fs/namespace.c')
-rw-r--r--src/plugins/fs/namespace.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/plugins/fs/namespace.c b/src/plugins/fs/namespace.c
index 7705a846..674e6c8a 100644
--- a/src/plugins/fs/namespace.c
+++ b/src/plugins/fs/namespace.c
@@ -198,7 +198,10 @@ static int updateView(const ECRS_FileInfo * fi,
198 -1); 198 -1);
199 if (filename == NULL) 199 if (filename == NULL)
200 filename = STRDUP(_("no name given")); 200 filename = STRDUP(_("no name given"));
201 size = ECRS_fileSize(fi->uri); 201 if (ECRS_isFileUri(fi->uri))
202 size = ECRS_fileSize(fi->uri);
203 else
204 size = 0;
202 uriString = ECRS_uriToString(fi->uri); 205 uriString = ECRS_uriToString(fi->uri);
203 gtk_list_store_append(GTK_LIST_STORE(model), 206 gtk_list_store_append(GTK_LIST_STORE(model),
204 &iter); 207 &iter);
@@ -804,6 +807,8 @@ void on_namespaceInsertButton_clicked(GtkWidget * dummy1,
804 metaXML = NULL; 807 metaXML = NULL;
805} 808}
806 809
810
811
807void on_namespaceUpdateButton_clicked(GtkWidget * dummy1, 812void on_namespaceUpdateButton_clicked(GtkWidget * dummy1,
808 GtkWidget * dummy2) { 813 GtkWidget * dummy2) {
809 GtkWidget * dialog; 814 GtkWidget * dialog;