diff options
author | Christian Kamm <mail@ckamm.de> | 2015-11-11 15:28:20 +0300 |
---|---|---|
committer | Christian Kamm <mail@ckamm.de> | 2015-11-11 15:28:20 +0300 |
commit | 05d1cc9a94d03dfbaac99942db1b8a8e2040178c (patch) | |
tree | 8a2b03e1d18bc93dc25ae328be2f6dd955f8722f /src/gui/ocsjob.h | |
parent | 196ee05fccc4687187376f4f8e44ceca69a4300f (diff) |
Sharing: Fix crash with share deletion #4111
The problem was that Share could be deleted *before*
the OcsShareJob itself finished. Since Share was the
parent of the network job, its object would be deleted
too early.
In general, it's unnecessary to assign parents to the OcsJobs
because they delete themselves when finished.
Diffstat (limited to 'src/gui/ocsjob.h')
-rw-r--r-- | src/gui/ocsjob.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/ocsjob.h b/src/gui/ocsjob.h index 344b004ae..dcd205854 100644 --- a/src/gui/ocsjob.h +++ b/src/gui/ocsjob.h @@ -38,7 +38,7 @@ class OcsJob : public AbstractNetworkJob { protected: - explicit OcsJob(AccountPtr account, QObject* parent = 0); + explicit OcsJob(AccountPtr account); /** * Set the verb for the job |