summaryrefslogtreecommitdiffstats
path: root/plugins/rssfeed
diff options
context:
space:
mode:
authorDarrell Anderson <humanreadable@yahoo.com>2012-03-21 22:55:48 -0500
committerDarrell Anderson <humanreadable@yahoo.com>2012-03-21 22:55:48 -0500
commit5af9907fee05f882f8d2422e47198ebf61d97bb7 (patch)
tree5f31682a2cf6cb479b3170ec6d0d79f382397634 /plugins/rssfeed
parentc6c4865cd4bb5b203de3a0db0cc2182b240570d3 (diff)
downloadktorrent-5af9907fee05f882f8d2422e47198ebf61d97bb7.tar.gz
ktorrent-5af9907fee05f882f8d2422e47198ebf61d97bb7.zip
Update ktorrent package to 2.2.8 and fix internal geoip database.
This resolves bug report 363.
Diffstat (limited to 'plugins/rssfeed')
-rw-r--r--plugins/rssfeed/rssfeed.cpp13
1 files changed, 10 insertions, 3 deletions
diff --git a/plugins/rssfeed/rssfeed.cpp b/plugins/rssfeed/rssfeed.cpp
index a067edd..119b9b2 100644
--- a/plugins/rssfeed/rssfeed.cpp
+++ b/plugins/rssfeed/rssfeed.cpp
@@ -195,11 +195,18 @@ namespace kt
if (file.exists())
{
- file.open( IO_ReadOnly );
+ try
+ {
+ file.open( IO_ReadOnly );
TQDataStream in(&file);
- in >> m_articles;
- emit articlesChanged( m_articles );
+ in >> m_articles;
+ emit articlesChanged( m_articles );
+ }
+ catch (...)
+ {
+ m_articles.clear();
+ }
}
}