* src/modest-ui-actions.c: (modest_ui_actions_on_send_receive):
Do not try to unref a NULL folder store, to avoid a runtime warning.
This seems to happen sometimes when changing accounts settings.
pmo-trunk-r2659
2007-07-09 Murray Cumming <murrayc@murrayc.com>
+ * src/modest-ui-actions.c: (modest_ui_actions_on_send_receive):
+ Do not try to unref a NULL folder store, to avoid a runtime warning.
+ This seems to happen sometimes when changing accounts settings.
+
+2007-07-09 Murray Cumming <murrayc@murrayc.com>
+
* src/modest-tny-account-store.c:
(modest_tny_account_store_instance_init),
(modest_tny_account_store_finalize),
folder_store = modest_folder_view_get_selected (MODEST_FOLDER_VIEW (folder_view));
- if (TNY_IS_FOLDER (folder_store)) {
+ if (folder_store && TNY_IS_FOLDER (folder_store)) {
header_view =
modest_main_window_get_child_widget (MODEST_MAIN_WINDOW (win),
MODEST_WIDGET_TYPE_HEADER_VIEW);
folder_refreshed_cb,
MODEST_MAIN_WINDOW (win));
}
- g_object_unref (folder_store);
+
+ if (folder_store)
+ g_object_unref (folder_store);
}
/* Refresh the active account */