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 43b0b20d94701318eb8ddf360cae15695e8e6e66..7086091d0c7edcfe7ce411d99200dce7983d24c2 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 a502662ff1ac7dc4612d6192ce8c586b64f7ea60..77f9fbb4192e7c27298d475008f207117278db52 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 1335baeea625882c36f8247100451ab94632765c..b9611fea6b33235a134722e284012e0ddfab90c0 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) {