[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: extragear/pim/mailody/src
From: Tom Albers <toma () kde ! org>
Date: 2009-10-16 20:02:27
Message-ID: 1255723347.960743.2344.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 1036203 by toma:
Dont crash when fetching the ip addresses did not result in any usefull data.
M +9 -0 messageroutewidget.cpp
--- trunk/extragear/pim/mailody/src/messageroutewidget.cpp #1036202:1036203
@@ -27,6 +27,7 @@
#include <KDialog>
#include <KLocale>
#include <KProgressDialog>
+#include <KMessageBox>
#include <kio/job.h>
#include <marble/MarbleWidget.h>
@@ -117,6 +118,14 @@
m_progress->progressBar()->setValue( m_ipinfo.count() );
kDebug() << "we now have " << m_ipinfo.count() << " / " << m_ips.count();
+
+ if (m_ips.count() == 0) {
+ m_progress->hide();
+ KMessageBox::error( this, i18n("Mailody could not determine the route "
+ "this message has taken") );
+ return;
+ }
+
if ( m_ipinfo.count() == m_ips.count() )
addIPsToWidget();
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic