Fixes NB#112513, show the proper account title when opening folders window from notif...
[modest] / src / hildon2 / modest-folder-window.c
index 4fca617..84f12aa 100644 (file)
@@ -816,10 +816,10 @@ on_visible_account_changed (ModestFolderView *folder_view,
                                                               account_id);
 
        /* Update window title */
-       update_window_title (MODEST_FOLDER_WINDOW (user_data), account);
-
-       if (account)
+       if (account) {
+               update_window_title (MODEST_FOLDER_WINDOW (user_data), account);
                g_object_unref (account);
+       }
 }
 
 static void