2007-11-18 [colin] 3.0.2cvs143
authorColin Leroy <colin@colino.net>
Sun, 18 Nov 2007 20:09:43 +0000 (20:09 +0000)
committerColin Leroy <colin@colino.net>
Sun, 18 Nov 2007 20:09:43 +0000 (20:09 +0000)
* src/edittags.c
Prevent empty tag after edit, thanks to wwp

ChangeLog
PATCHSETS
configure.ac
src/edittags.c

index d0bcc5e7ee2861ef9968e7754f98aa7d702a07f3..21f209db97a6e1a73b375873bcd38163f8260d34 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-11-18 [colin]     3.0.2cvs143
+
+       * src/edittags.c
+               Prevent empty tag after edit, thanks to wwp
+
 2007-11-18 [colin]     3.0.2cvs142
 
        * src/editaddress.c
index 220c2ab459c9c2b78584627fb4eabb75f3dd90ad..b4fe64235314d8610185e3224b9f68927862acb0 100644 (file)
--- a/PATCHSETS
+++ b/PATCHSETS
 ( cvs diff -u -r 1.115.2.175 -r 1.115.2.176 src/main.c;  cvs diff -u -r 1.1.2.3 -r 1.1.2.4 src/common/claws.c;  ) > 3.0.2cvs140.patchset
 ( cvs diff -u -r 1.36.2.124 -r 1.36.2.125 src/common/utils.c;  ) > 3.0.2cvs141.patchset
 ( cvs diff -u -r 1.14.2.43 -r 1.14.2.44 src/editaddress.c;  ) > 3.0.2cvs142.patchset
+( cvs diff -u -r 1.1.2.10 -r 1.1.2.11 src/edittags.c;  ) > 3.0.2cvs143.patchset
index d7d386112e3daedd1e91c90315d72fada5edb5c4..4ffae0e126c15062e891dac58558e99f2653f42b 100644 (file)
@@ -11,7 +11,7 @@ MINOR_VERSION=0
 MICRO_VERSION=2
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=142
+EXTRA_VERSION=143
 EXTRA_RELEASE=
 EXTRA_GTK2_VERSION=
 
index 99fa8bc26b8418fdb0ac7446261422c6686bae76..5be74ef286ea295fe193af9f3ad3afd025ede7b1 100644 (file)
@@ -571,6 +571,9 @@ static void tag_apply_selected_edited(GtkCellRendererText *widget,
        if (!gtk_tree_model_get_iter_from_string(model, &iter, path))
                return;
 
+       if (!new_text || !*new_text)
+               return;
+
        gtk_tree_model_get(model, &iter,
                           TAG_DATA, &tmp,
                           -1);