From c662ff1902d46205a62f4a22e086ecabf9a529e6 Mon Sep 17 00:00:00 2001 From: Dominique Fuchs <32204802+DominiqueFuchs@users.noreply.github.com> Date: Mon, 9 Sep 2019 20:06:32 +0200 Subject: [PATCH] fixed wrongly assigned pointer, didn't recognize class Signed-off-by: Dominique Fuchs <32204802+DominiqueFuchs@users.noreply.github.com> --- src/gui/folderman.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/folderman.cpp b/src/gui/folderman.cpp index dd6d55408..ec708d9b7 100644 --- a/src/gui/folderman.cpp +++ b/src/gui/folderman.cpp @@ -562,7 +562,7 @@ void FolderMan::slotEtagJobDestroyed(QObject * /*o*/) void FolderMan::slotRunOneEtagJob() { if (_currentEtagJob.isNull()) { - Folder *folder = new Folder; + Folder *folder = nullptr; foreach (Folder *f, _folderMap) { if (f->etagJob()) { // Caveat: always grabs the first folder with a job, but we think this is Ok for now and avoids us having a seperate queue.