[balsa] Do not open most recent mailbox if no mailboxes were open
- From: Peter Bloomfield <PeterB src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [balsa] Do not open most recent mailbox if no mailboxes were open
- Date: Thu, 24 Sep 2009 11:30:44 +0000 (UTC)
commit 60d865676497490ab33e2e89c671bbffcc5012ba
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date: Thu Sep 24 07:30:37 2009 -0400
Do not open most recent mailbox if no mailboxes were open
ChangeLog | 5 +++++
src/balsa-app.c | 13 +++++++++----
2 files changed, 14 insertions(+), 4 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 5133a20..8155501 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2009-09-24 Peter Bloomfield
+ * src/balsa-app.c (open_mailboxes_idle_cb): do not open most
+ recent mailbox if no mailboxes were open.
+
+2009-09-24 Peter Bloomfield
+
* src/balsa-app.c (open_mailbox_by_url),
(open_mailboxes_idle_cb): respect current-mailbox-url when -o
command line option is used.
diff --git a/src/balsa-app.c b/src/balsa-app.c
index 7f34f84..480e7b2 100644
--- a/src/balsa-app.c
+++ b/src/balsa-app.c
@@ -573,12 +573,17 @@ open_mailboxes_idle_cb(gchar ** urls)
g_string_free(str, TRUE);
}
- open_mailbox_by_url(balsa_app.current_mailbox_url);
+ if (urls && *urls) {
+ open_mailbox_by_url(balsa_app.current_mailbox_url);
- for (tmp = urls; *tmp; ++tmp)
- open_mailbox_by_url(*tmp);
+ for (tmp = urls; *tmp; ++tmp)
+{
+g_print("%s url \"%s\"\n", __func__, *tmp);
+ open_mailbox_by_url(*tmp);
+}
- g_strfreev(urls);
+ g_strfreev(urls);
+ }
gdk_threads_leave();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]