From 826aac16d3aa7407c5a44b9adee286a9ceb54384 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Wed, 16 Sep 2015 16:47:32 +0300 Subject: [PATCH] Run sending a crash report "silently". --HG-- branch : develop --- src/app/valentina/core/vapplication.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/app/valentina/core/vapplication.cpp b/src/app/valentina/core/vapplication.cpp index fed2815d8..712c8f802 100644 --- a/src/app/valentina/core/vapplication.cpp +++ b/src/app/valentina/core/vapplication.cpp @@ -889,7 +889,9 @@ void VApplication::SendReport(const QString &reportName) const const QString arg = QString("curl.exe -k -H \"Authorization: bearer ")+token.join("")+ QString("\" -H \"Accept: application/json\" -H \"Content-type: application/json\" -X POST " "--data @gist.json https://api.github.com/gists"); - QProcess::startDetached(arg); + QProcess proc; + proc.start(arg); + proc.waitForFinished(10000); // 10 sec reportFile.remove();// Clear after yourself } else