[ekiga] Fixed Opal::Account's populate_menu method
- From: Julien Puydt <jpuydt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ekiga] Fixed Opal::Account's populate_menu method
- Date: Fri, 1 Feb 2013 15:16:04 +0000 (UTC)
commit d2842ecfec079ced64cf170e0344a8203567496d
Author: Julien Puydt <jpuydt free fr>
Date: Fri Feb 1 16:10:31 2013 +0100
Fixed Opal::Account's populate_menu method
- a test was inverted ;
- it didn't handle correctly the case where the uri was already complete
lib/engine/components/opal/opal-account.cpp | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/lib/engine/components/opal/opal-account.cpp b/lib/engine/components/opal/opal-account.cpp
index b0f3749..42dff5d 100644
--- a/lib/engine/components/opal/opal-account.cpp
+++ b/lib/engine/components/opal/opal-account.cpp
@@ -487,14 +487,15 @@ Opal::Account::populate_menu (const std::string fullname,
else
protocol = "sip:";
complete_uri = protocol + uri;
- }
+ } else
+ complete_uri = uri;
// whatever the protocol was previously, check if it fits
- if (
+ if (not(
(type == H323 && complete_uri.find ("h323:" != 0))
||
(type != H323 && complete_uri.find ("sip:" != 0))
- )
+ ))
return false;
// from now on, we're sure we have an uri corresponding to the account
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]