fix crash when performing an action on a mime part
authorPaul Mangan <paul@claws-mail.org>
Mon, 28 Apr 2003 10:55:47 +0000 (10:55 +0000)
committerPaul Mangan <paul@claws-mail.org>
Mon, 28 Apr 2003 10:55:47 +0000 (10:55 +0000)
ChangeLog.claws
configure.ac
src/action.c

index 43b0b20..7086091 100644 (file)
@@ -1,3 +1,9 @@
+2003-04-28 [paul]      0.8.11claws120
+
+       * src/action.c
+               fix crash when performing an action on a
+               mime part
+
 2003-04-28 [paul]      0.8.11claws119
 
        * sync with 0.8.11cvs36
index a502662..77f9fbb 100644 (file)
@@ -11,7 +11,7 @@ MINOR_VERSION=8
 MICRO_VERSION=11
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=claws119
+EXTRA_VERSION=claws120
 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
 
 dnl set $target
index 1335bae..b9611fe 100644 (file)
@@ -587,7 +587,7 @@ static gboolean execute_actions(gchar *action, GSList *msg_list,
                        return FALSE; /* ERR: selection string but no text */
        }
 
-       if (GTK_EDITABLE(text)->has_selection) {
+       if (text) {
                start = GTK_EDITABLE(text)->selection_start_pos;
                end   = GTK_EDITABLE(text)->selection_end_pos;
                if (start > end) {