Commit 15b4c727 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Delete folder even if folder id < 0

parent 072566d1
Pipeline #35898 passed with stage
in 13 minutes and 10 seconds
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
#include <KLocalizedString> #include <KLocalizedString>
#include <QTimer> #include <QTimer>
#include <QDebug>
using namespace Akregator; using namespace Akregator;
...@@ -129,7 +130,7 @@ void DeleteSubscriptionJob::start() ...@@ -129,7 +130,7 @@ void DeleteSubscriptionJob::start()
void DeleteSubscriptionJob::doDelete() void DeleteSubscriptionJob::doDelete()
{ {
const QSharedPointer<FeedList> feedList = m_feedList.lock(); const QSharedPointer<FeedList> feedList = m_feedList.lock();
if (m_id > 0 && feedList) { if (feedList) {
delete feedList->findByID(m_id); delete feedList->findByID(m_id);
} }
emitResult(); emitResult();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment