[ekiga] Make sure the status of an opal account is updated if user unregisters while the account is in an ba
- From: Julien Puydt <jpuydt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ekiga] Make sure the status of an opal account is updated if user unregisters while the account is in an ba
- Date: Fri, 23 Mar 2012 16:15:14 +0000 (UTC)
commit 51a6969a3d74c3837fe1e961be94311427189543
Author: Julien Puydt <julien puydt laposte net>
Date: Fri Mar 23 17:14:58 2012 +0100
Make sure the status of an opal account is updated if user unregisters while the account is in an bad-registration state
lib/engine/components/opal/opal-account.cpp | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/lib/engine/components/opal/opal-account.cpp b/lib/engine/components/opal/opal-account.cpp
index 5ea9add..7dcff43 100644
--- a/lib/engine/components/opal/opal-account.cpp
+++ b/lib/engine/components/opal/opal-account.cpp
@@ -324,6 +324,13 @@ void Opal::Account::disable ()
{
enabled = false;
+ // Translators: this is a state, not an action, i.e. it should be read as
+ // "(you are) unregistered", and not as "(you have been) unregistered"
+ status = _("Unregistered");
+
+ // the above change is needed because if we are already not
+ // registered (because a registration failed, for example), then the
+ // next action won't change the status.
endpoint->unsubscribe (*this);
if (presentity) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]