Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/desktop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Kamm <mail@ckamm.de>2015-11-11 15:28:20 +0300
committerChristian Kamm <mail@ckamm.de>2015-11-11 15:28:20 +0300
commit05d1cc9a94d03dfbaac99942db1b8a8e2040178c (patch)
tree8a2b03e1d18bc93dc25ae328be2f6dd955f8722f /src/gui/ocsshareejob.h
parent196ee05fccc4687187376f4f8e44ceca69a4300f (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/ocsshareejob.h')
-rw-r--r--src/gui/ocsshareejob.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/ocsshareejob.h b/src/gui/ocsshareejob.h
index 208d0ff60..c8a49fd97 100644
--- a/src/gui/ocsshareejob.h
+++ b/src/gui/ocsshareejob.h
@@ -29,7 +29,7 @@ class OcsShareeJob : public OcsJob {
Q_OBJECT
public:
- explicit OcsShareeJob(AccountPtr account, QObject *parent = 0);
+ explicit OcsShareeJob(AccountPtr account);
/**
* Get a list of sharees