ekiga r7713 - in trunk: . src/gui



Author: dsandras
Date: Tue Mar  3 20:31:35 2009
New Revision: 7713
URL: http://svn.gnome.org/viewvc/ekiga?rev=7713&view=rev

Log:
Fixed bug #573480 (URL completion combobox shows identical completions
after several registration refresh actions).


Modified:
   trunk/ChangeLog
   trunk/src/gui/main.cpp

Modified: trunk/src/gui/main.cpp
==============================================================================
--- trunk/src/gui/main.cpp	(original)
+++ trunk/src/gui/main.cpp	Tue Mar  3 20:31:35 2009
@@ -517,7 +517,8 @@
   case Ekiga::AccountCore::Registered:
     /* Translators: Is displayed once an account "%s" is registered. */
     msg = g_strdup_printf (_("Registered %s"), aor.c_str ()); 
-    mw->priv->accounts.push_back (account.get_host ());
+    if (std::find (mw->priv->accounts.begin (), mw->priv->accounts.end (), account.get_host ()) == mw->priv->accounts.end ())
+      mw->priv->accounts.push_back (account.get_host ());
     break;
 
   case Ekiga::AccountCore::Unregistered:



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]