[ekiga/gnome-2-26] Fixed crash when we don't have accounts (bug #577204)



commit 5c0d05521809edcdb39a7f399bce79695769244c
Author: Julien Puydt <jpuydt src gnome org>
Date:   Tue Mar 31 19:44:17 2009 +0000

    Fixed crash when we don't have accounts (bug #577204)
    
    svn path=/trunk/; revision=7840
---
 src/gui/main.cpp |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/src/gui/main.cpp b/src/gui/main.cpp
index 9bf2c16..cebd53e 100644
--- a/src/gui/main.cpp
+++ b/src/gui/main.cpp
@@ -1470,7 +1470,10 @@ place_call_cb (GtkWidget * /*widget*/,
     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 && uri.find ("h323:") == std::string::npos) {
+    if (pos == std::string::npos
+	&& uri.find ("h323:") == std::string::npos
+	&& mw->priv->accounts.begin () != mw->priv->accounts.end ()) {
+
       std::list<std::string>::iterator it = mw->priv->accounts.begin ();
       uri = uri + "@" + (*it);
       ekiga_main_window_set_call_url (mw, uri.c_str ());



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