[ekiga] Accounts: Only signal registration changes when it really changed.
- From: Damien Sandras <dsandras src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ekiga] Accounts: Only signal registration changes when it really changed.
- Date: Sat, 24 Jan 2015 13:00:29 +0000 (UTC)
commit b067b0e01665b9cc5bac5f1ba17e1330440b2389
Author: Damien Sandras <dsandras seconix com>
Date: Sat Jan 24 13:59:48 2015 +0100
Accounts: Only signal registration changes when it really changed.
lib/engine/components/opal/opal-account.cpp | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/lib/engine/components/opal/opal-account.cpp b/lib/engine/components/opal/opal-account.cpp
index 35775bd..91e019a 100644
--- a/lib/engine/components/opal/opal-account.cpp
+++ b/lib/engine/components/opal/opal-account.cpp
@@ -902,6 +902,9 @@ void
Opal::Account::handle_registration_event (Ekiga::Account::RegistrationState state_,
const std::string info)
{
+ if (state == state_)
+ return; // The state did not change...
+
switch (state_) {
case Registered:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]