[ekiga] Fixed various little issues in Opal::Account
- From: Julien Puydt <jpuydt src gnome org>
- To: svn-commits-list gnome org
- Subject: [ekiga] Fixed various little issues in Opal::Account
- Date: Tue, 9 Jun 2009 15:07:05 -0400 (EDT)
commit 825e59ac9c1235f6ad6bd5cf0fc800494b05a244
Author: Julien Puydt <jpuydt gnome org>
Date: Sun Jun 7 15:50:19 2009 +0200
Fixed various little issues in Opal::Account
I forgot to initialize some values in the constructors,
and the switch on the new registration state was done on the
old value.
---
lib/engine/components/opal/opal-account.cpp | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/lib/engine/components/opal/opal-account.cpp b/lib/engine/components/opal/opal-account.cpp
index 5b566ba..396eaa2 100644
--- a/lib/engine/components/opal/opal-account.cpp
+++ b/lib/engine/components/opal/opal-account.cpp
@@ -60,6 +60,8 @@ Opal::Account::Account (Ekiga::ServiceCore & _core,
: core (_core)
{
dead = false;
+ state = Unregistered;
+ message_waiting_number = 0;
int i = 0;
char *pch = strtok ((char *) account.c_str (), "|");
@@ -139,6 +141,8 @@ Opal::Account::Account (Ekiga::ServiceCore & _core,
: core (_core)
{
dead = false;
+ state = Unregistered;
+ message_waiting_number = 0;
enabled = _enabled;
aid = (const char *) PGloballyUniqueID ().AsString ();
name = _name;
@@ -467,8 +471,7 @@ void
Opal::Account::handle_registration_event (RegistrationState state_,
const std::string info)
{
-
- switch (state) {
+ switch (state_) {
case Registered:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]