commit e5eae033264a091d8678f1b89b865fc5e6c8f758
parent bf56b543cc664c40c3695e287ee8e7e924f2d0d1
Author: Hamish Downer <dmishd@gmail.com>
Date: Sun, 19 Jun 2011 22:26:11 +0100
Only use account selector if more than one email address available
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/sup/modes/edit-message-mode.rb b/lib/sup/modes/edit-message-mode.rb
@@ -114,8 +114,8 @@ EOS
@selectors = []
@selector_label_width = 0
- # only show account selector if there is more than one account
- if $config[:account_selector]
+ # only show account selector if there is more than one email address
+ if $config[:account_selector] && AccountManager.user_emails.length > 1
## Duplicate e-mail strings to prevent a "can't modify frozen
## object" crash triggered by the String::display_length()
## method in util.rb