diff options
Diffstat (limited to 'src/plugins/fs/namespace.c')
-rw-r--r-- | src/plugins/fs/namespace.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/plugins/fs/namespace.c b/src/plugins/fs/namespace.c index a11ee771..7705a846 100644 --- a/src/plugins/fs/namespace.c +++ b/src/plugins/fs/namespace.c | |||
@@ -321,7 +321,10 @@ static int addNamespaceContentToModel(void * cls, | |||
321 | EXTRACTOR_MIMETYPE); | 321 | EXTRACTOR_MIMETYPE); |
322 | if (mime == NULL) | 322 | if (mime == NULL) |
323 | mime = STRDUP(_("unknown")); | 323 | mime = STRDUP(_("unknown")); |
324 | size = ECRS_fileSize(fi->uri); | 324 | if (ECRS_isFileUri(fi->uri)) |
325 | size = ECRS_fileSize(fi->uri); | ||
326 | else | ||
327 | size = 0; | ||
325 | uriString = ECRS_uriToString(fi->uri); | 328 | uriString = ECRS_uriToString(fi->uri); |
326 | hash2enc(lastId, &last); | 329 | hash2enc(lastId, &last); |
327 | hash2enc(nextId, &next); | 330 | hash2enc(nextId, &next); |
@@ -637,7 +640,7 @@ static void initiateUpload(GtkTreeModel * model, | |||
637 | BREAK(); | 640 | BREAK(); |
638 | } else { | 641 | } else { |
639 | /* update namespace content list! */ | 642 | /* update namespace content list! */ |
640 | fi.uri = resultURI; | 643 | fi.uri = dst; |
641 | fi.meta = meta; | 644 | fi.meta = meta; |
642 | addNamespaceContentToModel(list->model, | 645 | addNamespaceContentToModel(list->model, |
643 | &fi, | 646 | &fi, |
@@ -734,7 +737,9 @@ void on_namespaceInsertButton_clicked(GtkWidget * dummy1, | |||
734 | if (gtk_dialog_run(GTK_DIALOG(dialog)) == GTK_RESPONSE_OK) { | 737 | if (gtk_dialog_run(GTK_DIALOG(dialog)) == GTK_RESPONSE_OK) { |
735 | update = glade_xml_get_widget(metaXML, | 738 | update = glade_xml_get_widget(metaXML, |
736 | "updateIntervalComboBoxEntry"); | 739 | "updateIntervalComboBoxEntry"); |
737 | timeSpec = gtk_entry_get_text(GTK_ENTRY(update)); | 740 | timeSpec = gtk_entry_get_text(GTK_ENTRY(gtk_bin_get_child(GTK_BIN(update)))); |
741 | if (timeSpec == NULL) | ||
742 | timeSpec = ""; | ||
738 | if (0 == strcmp(_("--sporadic update--"), | 743 | if (0 == strcmp(_("--sporadic update--"), |
739 | timeSpec)) | 744 | timeSpec)) |
740 | cls.updateInterval = ECRS_SBLOCK_UPDATE_SPORADIC; | 745 | cls.updateInterval = ECRS_SBLOCK_UPDATE_SPORADIC; |