diff options
Diffstat (limited to 'logic/net/NetAction.h')
-rw-r--r-- | logic/net/NetAction.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/logic/net/NetAction.h b/logic/net/NetAction.h index eb3153d2..803c9259 100644 --- a/logic/net/NetAction.h +++ b/logic/net/NetAction.h @@ -29,7 +29,7 @@ enum JobStatus }; typedef std::shared_ptr<class NetAction> NetActionPtr; -class NetAction : public QObject +class NetAction : public QObject, public std::enable_shared_from_this<NetAction> { Q_OBJECT protected: @@ -51,6 +51,11 @@ public: { return m_failures; } + NetActionPtr getSharedPtr() + { + return shared_from_this(); + } + public: /// the network reply std::shared_ptr<QNetworkReply> m_reply; |