* mu-msg-view.c: don't show message widgets for NULL messages

This commit is contained in:
Dirk-Jan C. Binnema 2011-01-29 12:44:07 +02:00
parent c10ef1f384
commit 79ad60e91a
1 changed files with 3 additions and 0 deletions

View File

@ -253,6 +253,9 @@ mu_msg_view_set_message (MuMsgView *self, MuMsg *msg)
self->_priv->_msg = msg ? mu_msg_ref (msg) : NULL;
remove_widgets (self);
if (!msg)
return;
if (!self->_priv->_view_source)
gtk_box_pack_start (GTK_BOX(self),