[geary] Really fix crash when replying to non-draft messages.
- From: Michael Gratton <mjog src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [geary] Really fix crash when replying to non-draft messages.
- Date: Thu, 16 Feb 2017 08:12:14 +0000 (UTC)
commit e0ff646904442cb0bc9d36ae7a133fbf16094825
Author: Michael James Gratton <mike vee net>
Date: Thu Feb 16 19:11:57 2017 +1100
Really fix crash when replying to non-draft messages.
See commit 67d2c80.
* src/client/composer/composer-widget.vala (ComposerWidget::load): Only
call restore_reply_to_state if there is a referred message *and* it is
actually a draft.
src/client/composer/composer-widget.vala | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/client/composer/composer-widget.vala b/src/client/composer/composer-widget.vala
index 7329de5..3d356e4 100644
--- a/src/client/composer/composer-widget.vala
+++ b/src/client/composer/composer-widget.vala
@@ -590,7 +590,9 @@ public class ComposerWidget : Gtk.EventBox {
compose_type == ComposeType.FORWARD) {
this.pending_include = AttachPending.ALL;
}
- yield restore_reply_to_state();
+ if (is_referred_draft) {
+ yield restore_reply_to_state();
+ }
}
set_header_recipients();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]