Bug 406405

Summary: Adding new feed suspends saving feeds until quit
Product: [Applications] akregator Reporter: Patrick <mail>
Component: metakit pluginAssignee: kdepim bugs <kdepim-bugs>
Status: CONFIRMED ---    
Severity: normal CC: montel
Priority: NOR    
Version: 5.10.3   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:

Description Patrick 2019-04-10 13:25:47 UTC
SUMMARY
Adding a new feed causes all feeds only to be saved until Akgregator is quit. Normally feeds are saved immediately.

This is caused by Akregator::Backend::StorageMK4Impl::markDirty() in storagemk4impl.cpp. When a new feed is created, the private member 'modified' is set to true, but this causes markDirty to skip the commit. 


STEPS TO REPRODUCE
1. Add new feed.
2. Check ~/local/share/akregator/Archive

OBSERVED RESULT
New feed is 0 bytes in size. Additional fetched feeds are not saved.

EXPECTED RESULT
New feed should be larger than 0 bytes. Additional fetched feeds should be saved immediately.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 5.15.4
KDE Frameworks Version: 5.56
Qt Version: 5.12.2

ADDITIONAL INFORMATION
Possibly related to bug 199232.
Comment 1 Laurent Montel 2019-04-11 05:52:30 UTC
I confirm it.