diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2010-08-30 09:45:41 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2010-08-30 09:45:41 +0000 |
commit | 18414e327025c009aecca7108d47c96ea0a34f6e (patch) | |
tree | f18781aa820e839276fc567045605312da610a2f | |
parent | b1598057537605c0ef68b4fc0ed2edaebbf25a6a (diff) |
fixed open_inbox_on_startup setting.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@2684 ee746299-78ed-0310-b773-934348b2243d
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | src/main.c | 9 |
2 files changed, 13 insertions, 2 deletions
@@ -1,3 +1,9 @@ +2010-08-30 + + * src/main.c: remote_command_exec(): fixed the bug that default + account's inbox was not properly selected when 'Open inbox on + startup' was enabled. + 2010-08-19 * src/addressbook.[ch] @@ -1542,8 +1542,13 @@ static void remote_command_exec(void) if (prefs_common.open_inbox_on_startup) { FolderItem *item; - item = cur_account && cur_account->inbox - ? folder_find_item_from_identifier(cur_account->inbox) + PrefsAccount *ac; + + ac = account_get_default(); + if (!ac) + ac = cur_account; + item = ac && ac->inbox + ? folder_find_item_from_identifier(ac->inbox) : folder_get_default_inbox(); folderview_select(mainwin->folderview, item); } |