------------------------------------------------------------
revno: 2956
committer: eMTee <[email protected]>
branch nick: dcplusplus
timestamp: Wed 2012-06-20 11:02:43 +0200
message:
  Fix PubHubsFrame controls stuck disabled after a download attempt from an 
invalid URL
modified:
  dcpp/FavoriteManager.cpp


--
lp:dcplusplus
https://code.launchpad.net/~dcplusplus-team/dcplusplus/trunk

Your team Dcplusplus-team is subscribed to branch lp:dcplusplus.
To unsubscribe from this branch go to 
https://code.launchpad.net/~dcplusplus-team/dcplusplus/trunk/+edit-subscription
=== modified file 'dcpp/FavoriteManager.cpp'
--- dcpp/FavoriteManager.cpp	2012-06-08 15:27:48 +0000
+++ dcpp/FavoriteManager.cpp	2012-06-20 09:02:43 +0000
@@ -676,11 +676,15 @@
 
 void FavoriteManager::refresh(bool forceDownload /* = false */) {
 	StringList sl = getHubLists();
-	if(sl.empty())
+	if(sl.empty()) {
+		fire(FavoriteManagerListener::DownloadFailed(), Util::emptyString);
 		return;
+	}
+
 	publicListServer = sl[(lastServer) % sl.size()];
 	if(Util::strnicmp(publicListServer.c_str(), "http://";, 7) != 0) {
 		lastServer++;
+		fire(FavoriteManagerListener::DownloadFailed(), str(F_("Invalid URL: %1%") % Util::addBrackets(publicListServer)));
 		return;
 	}
 

_______________________________________________
Mailing list: https://launchpad.net/~linuxdcpp-team
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~linuxdcpp-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to