Commit 4ebb51b3 authored by Peter Bloomfield's avatar Peter Bloomfield
Browse files

Remember when we have opened Inbox twice

	* src/main.c (initial_open_inbox), (balsa_cleanup): remember
	when we have opened Inbox twice.
	* src/balsa-app.h: add member to remember it.
parent f500d4da
2013-03-04 Peter Bloomfield
* src/main.c (initial_open_inbox), (balsa_cleanup): remember
when we have opened Inbox twice.
* src/balsa-app.h: add member to remember it.
2013-03-03 Peter Bloomfield
* src/balsa-index.c (balsa_index_scroll_on_open): always use an
......
......@@ -305,6 +305,7 @@ extern struct BalsaApplication {
/* command line options */
gint open_inbox_upon_startup;
gboolean inbox_has_extra_open_ref;
gint check_mail_upon_startup;
gint remember_open_mboxes;
gint open_unread_mailbox;
......
......@@ -336,6 +336,8 @@ initial_open_inbox()
balsa_mblist_open_mailbox_hidden(balsa_app.inbox);
gdk_threads_leave();
balsa_app.inbox_has_extra_open_ref = TRUE;
return FALSE;
}
......@@ -718,6 +720,9 @@ balsa_cleanup(void)
}
pthread_mutex_unlock(&checking_mail_lock);
#endif
if (balsa_app.inbox_has_extra_open_ref)
libbalsa_mailbox_close(balsa_app.inbox,
balsa_app.expunge_on_close);
balsa_app_destroy();
g_hash_table_destroy(libbalsa_mailbox_view_table);
libbalsa_mailbox_view_table = NULL;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment