Disable actions when no accounts enabled

0 views
Skip to first unread message

Sander Dijkhuis

unread,
Jan 21, 2008, 1:45:34 PM1/21/08
to psi-...@googlegroups.com
When no accounts are enabled, the 'New blank message' and 'Join
Groupchat' actions cause Psi to crash. I've attached a patch that
fixes this, by disabling these options when no accounts are enabled.
They are now instances of a new IconAction subclass called
AccountAction, which is subscribed to PsiCon::accountCountChanged(). A
more elegant fix would involve making these two options behave the
same way as 'Add a contact' and 'Service Discovery', which currently
are MAction instances.

Sander

disable-actions-when-no-accounts-enabled.patch
Reply all
Reply to author
Forward
0 new messages