diff options
author | Christian Grothoff <christian@grothoff.org> | 2005-07-09 13:01:42 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2005-07-09 13:01:42 +0000 |
commit | 87b9977a7d6234ce21b2f931948b456d512956d2 (patch) | |
tree | 7a1e825f29ac7e40c14f185424de8f1328c6c99c | |
parent | 249240cdd0532b3a5ffba1e1b522d84ae4e3f082 (diff) | |
download | gnunet-gtk-87b9977a7d6234ce21b2f931948b456d512956d2.tar.gz gnunet-gtk-87b9977a7d6234ce21b2f931948b456d512956d2.zip |
fix
-rw-r--r-- | src/plugins/fs/namespace.c | 4 | ||||
-rw-r--r-- | src/plugins/fs/upload.c | 6 |
2 files changed, 6 insertions, 4 deletions
diff --git a/src/plugins/fs/namespace.c b/src/plugins/fs/namespace.c index ab4fab5e..24b64adc 100644 --- a/src/plugins/fs/namespace.c +++ b/src/plugins/fs/namespace.c | |||
@@ -436,8 +436,8 @@ on_namespacemetaDataDialogMetaDataAddButton_clicked(gpointer dummy, | |||
436 | return; /* oops */ | 436 | return; /* oops */ |
437 | gtk_tree_model_get(GTK_TREE_MODEL(typemodel), | 437 | gtk_tree_model_get(GTK_TREE_MODEL(typemodel), |
438 | &iter, | 438 | &iter, |
439 | META_STYPE, &stype, | 439 | KTYPE_STRING, &stype, |
440 | META_TYPE, &type, | 440 | KTYPE_TYPE, &type, |
441 | -1); | 441 | -1); |
442 | gtk_list_store_append(metamodel, | 442 | gtk_list_store_append(metamodel, |
443 | &iter); | 443 | &iter); |
diff --git a/src/plugins/fs/upload.c b/src/plugins/fs/upload.c index 20792968..e0306469 100644 --- a/src/plugins/fs/upload.c +++ b/src/plugins/fs/upload.c | |||
@@ -340,6 +340,8 @@ void on_metaDataDialogMetaDataAddButton_clicked(gpointer dummy, | |||
340 | entryLine = glade_xml_get_widget(metaXML, | 340 | entryLine = glade_xml_get_widget(metaXML, |
341 | "metaDataDialogValueEntry"); | 341 | "metaDataDialogValueEntry"); |
342 | value = gtk_entry_get_text(GTK_ENTRY(entryLine)); | 342 | value = gtk_entry_get_text(GTK_ENTRY(entryLine)); |
343 | if ( (value == NULL) || (strlen(value) == 0) ) | ||
344 | return; | ||
343 | typeCB = glade_xml_get_widget(metaXML, | 345 | typeCB = glade_xml_get_widget(metaXML, |
344 | "metaDataDialogMetaTypeComboBox"); | 346 | "metaDataDialogMetaTypeComboBox"); |
345 | typemodel | 347 | typemodel |
@@ -349,8 +351,8 @@ void on_metaDataDialogMetaDataAddButton_clicked(gpointer dummy, | |||
349 | return; /* oops */ | 351 | return; /* oops */ |
350 | gtk_tree_model_get(GTK_TREE_MODEL(typemodel), | 352 | gtk_tree_model_get(GTK_TREE_MODEL(typemodel), |
351 | &iter, | 353 | &iter, |
352 | META_STYPE, &stype, | 354 | KTYPE_STRING, &stype, |
353 | META_TYPE, &type, | 355 | KTYPE_TYPE, &type, |
354 | -1); | 356 | -1); |
355 | gtk_list_store_append(metamodel, | 357 | gtk_list_store_append(metamodel, |
356 | &iter); | 358 | &iter); |