[evolution/gnome-3-4] Bug #617557 - Can close composer while message is sending
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/gnome-3-4] Bug #617557 - Can close composer while message is sending
- Date: Tue, 26 Jun 2012 10:03:27 +0000 (UTC)
commit e09846d55aa7102e891a3251c3a2e7c8fab337b1
Author: Milan Crha <mcrha redhat com>
Date: Tue Jun 26 12:03:01 2012 +0200
Bug #617557 - Can close composer while message is sending
composer/e-msg-composer.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c
index 0426ab3..8dbbdc6 100644
--- a/composer/e-msg-composer.c
+++ b/composer/e-msg-composer.c
@@ -4891,6 +4891,11 @@ e_msg_composer_can_close (EMsgComposer *composer,
editor = GTKHTML_EDITOR (composer);
widget = GTK_WIDGET (composer);
+ /* this means that there is an async operation running,
+ in which case the composer cannot be closed */
+ if (!gtk_action_group_get_sensitive (composer->priv->async_actions))
+ return FALSE;
+
if (!gtkhtml_editor_get_changed (editor))
return TRUE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]