[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [kdepim] akregator/src: Fix the Akregator segfault when the feed
From:       Marta Rybczynska <marta () rybczynska ! net>
Date:       2011-08-31 21:22:58
Message-ID: 20110831212258.C56F0A6078 () git ! kde ! org
[Download RAW message or body]

Git commit ff1fd36bf88562588e3899e1d81e5d410857ebbe by Marta Rybczynska.
Committed on 31/08/2011 at 22:12.
Pushed by mrybczyn into branch 'master'.

Fix the Akregator segfault when the feed list is damaged, and we try to add a new feed.
The reason for this is that the FeedList object to be used is never correctly created,
do it stays at 0. This patch provides possibly the easiest solution to the problem:
when the feed is damaged, we use the default feed.

FIXED-IN: 4.7.1
BUG: 245911
REVIEW: 102333

M  +1    -1    akregator/src/loadfeedlistcommand.cpp

http://commits.kde.org/kdepim/ff1fd36bf88562588e3899e1d81e5d410857ebbe

diff --git a/akregator/src/loadfeedlistcommand.cpp b/akregator/src/loadfeedlistcommand.cpp
index dda20a4..097c013 100644
--- a/akregator/src/loadfeedlistcommand.cpp
+++ b/akregator/src/loadfeedlistcommand.cpp
@@ -166,7 +166,7 @@ void LoadFeedListCommand::Private::doLoad() {
         KMessageBox::detailedError( q->parentWidget(), msg, details, title );
 
         if ( that )
-            emitResult( shared_ptr<FeedList>() );
+            handleDocument( defaultFeedList );
         return;
     }
 

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic