* Fixes #NB57458
[modest] / src / widgets / modest-window.c
index ee4553e..07629b0 100644 (file)
@@ -156,7 +156,9 @@ modest_window_set_active_account (ModestWindow *self, const gchar *active_accoun
                return;
        else {
                g_free (priv->active_account);
-               priv->active_account = g_strdup (active_account);
+               priv->active_account = NULL;
+               if (active_account)
+                       priv->active_account = g_strdup (active_account);
        }
 }
 
@@ -232,3 +234,11 @@ modest_window_show_toolbar_default (ModestWindow *window,
 {
        g_warning ("modest: You should implement %s", __FUNCTION__);
 }
+
+void
+modest_window_save_state (ModestWindow *window)
+{
+       ModestWindowClass *klass = MODEST_WINDOW_GET_CLASS (window);
+       if (klass->save_state_func)
+               klass->save_state_func (window);
+}