ekiga r7584 - in trunk: . src/gui



Author: dsandras
Date: Wed Jan 21 21:45:08 2009
New Revision: 7584
URL: http://svn.gnome.org/viewvc/ekiga?rev=7584&view=rev

Log:
When the user forgets to use the auto-completion, use the first
account in the list as default. (#568338)


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	Wed Jan 21 21:45:08 2009
@@ -1463,6 +1463,12 @@
     ekiga_main_window_update_calling_state (mw, Calling);
     gmref_ptr<Ekiga::CallCore> call_core = mw->priv->core->get ("call-core");
     uri = ekiga_main_window_get_call_url (mw);
+    pos = uri.find ("@");
+    if (pos == std::string::npos) {
+      std::list<std::string>::iterator it = mw->priv->accounts.begin ();
+      uri = uri + "@" + (*it);
+      ekiga_main_window_set_call_url (mw, uri.c_str ());
+    }
     if (call_core->dial (uri)) {
 
       pos = uri.find ("@");



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