diff options
author | Hannah von Reth <hannah.vonreth@owncloud.com> | 2021-07-02 11:21:01 +0300 |
---|---|---|
committer | Hannah von Reth <vonreth@kde.org> | 2021-07-13 11:14:00 +0300 |
commit | 3f5163a4f30cf5978ffd7ee363e0d81065eb29c0 (patch) | |
tree | 43be5adbc8934993f79df4fa931d07450dae7dfe /src/gui/protocolitem.h | |
parent | f1ee3e18e858cd2816dbf588e35cb7f1441f8511 (diff) |
Delay the deletion of Folder objects
This removes the need to check for the existance of the pointers
Fixes: #8690
Diffstat (limited to 'src/gui/protocolitem.h')
-rw-r--r-- | src/gui/protocolitem.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/gui/protocolitem.h b/src/gui/protocolitem.h index ab2ee44e0..8f064a1aa 100644 --- a/src/gui/protocolitem.h +++ b/src/gui/protocolitem.h @@ -13,6 +13,8 @@ */ #pragma once +#include "folder.h" + #include "csync/csync.h" #include "libsync/syncfileitem.h" @@ -29,7 +31,7 @@ public: QString path() const; - QString folderName() const; + Folder *folder() const; QDateTime timestamp() const; @@ -45,7 +47,7 @@ public: private: QString _path; - QString _folderName; + Folder *_folder; QDateTime _timestamp; qint64 _size; SyncFileItem::Status _status BITFIELD(4); @@ -53,6 +55,8 @@ private: QString _message; bool _sizeIsRelevant; + + friend class TestProtocolModel; }; } |