forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kde-apps/akregator: Try to fix feedlist corruption and crashes
Bug: https://bugs.gentoo.org/629548 Package-Manager: Portage-2.3.24, Repoman-2.3.6
- Loading branch information
Showing
3 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp | ||
index fd533ecd..2733b273 100644 | ||
--- a/src/mainwindow.cpp | ||
+++ b/src/mainwindow.cpp | ||
@@ -137,9 +137,7 @@ MainWindow::~MainWindow() | ||
void MainWindow::saveProperties(KConfigGroup &config) | ||
{ | ||
if (!m_part) { | ||
- if (!loadPart()) { | ||
- return; | ||
- } | ||
+ return; | ||
} | ||
|
||
m_part->saveProperties(config); | ||
|
17 changes: 17 additions & 0 deletions
17
kde-apps/akregator/files/akregator-17.12.2-feedlist-corruption.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
diff --git a/src/akregator_part.cpp b/src/akregator_part.cpp | ||
index 94a4e00..3d2d778 100644 | ||
--- a/src/akregator_part.cpp | ||
+++ b/src/akregator_part.cpp | ||
@@ -514,6 +514,11 @@ void Part::slotSaveFeedList() | ||
if (!m_standardListLoaded) { | ||
return; | ||
} | ||
+ | ||
+ QSharedPointer<FeedList> f_list = m_mainWidget->allFeedsList(); | ||
+ if (f_list.isNull()) { | ||
+ return; | ||
+ } | ||
|
||
// the first time we overwrite the feed list, we create a backup | ||
if (!m_backedUpList) { | ||
|