aboutsummaryrefslogtreecommitdiffstats
path: root/composer/e-msg-composer.c
diff options
context:
space:
mode:
Diffstat (limited to 'composer/e-msg-composer.c')
-rw-r--r--composer/e-msg-composer.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c
index d8257155d2..bce1c3de91 100644
--- a/composer/e-msg-composer.c
+++ b/composer/e-msg-composer.c
@@ -2877,10 +2877,11 @@ drop_action(EMsgComposer *composer, GdkDragContext *context, guint32 action, Gtk
d(printf ("dropping an unknown\n"));
break;
}
- gtk_widget_show (composer->attachment_expander);
- gtk_widget_show (composer->attachment_scrolled_window);
- printf("Drag finished, success %d delete %d\n", success, delete);
+ if (e_attachment_bar_get_num_attachments(E_ATTACHMENT_BAR(composer->attachment_bar))) {
+ gtk_widget_show (composer->attachment_expander);
+ gtk_widget_show (composer->attachment_scrolled_window);
+ }
gtk_drag_finish(context, success, delete, time);
}