|
@@ -7,10 +7,10 @@
|
|
|
#include <poll.h>
|
|
|
#include <string>
|
|
|
#include <sys/prctl.h>
|
|
|
+#include <sys/stat.h>
|
|
|
#include <sys/wait.h>
|
|
|
#include <thread>
|
|
|
#include <unistd.h>
|
|
|
-#include <sys/stat.h>
|
|
|
|
|
|
#include "qmlhandler.h"
|
|
|
#include <boost/asio.hpp>
|
|
@@ -189,10 +189,9 @@ void QMLHandler::handleJSON(string buffer) {
|
|
|
if (root["accept"] == false) {
|
|
|
QString errorMessage = QString::fromStdString(string("Error when downloading file " + root["file"].asString() + ":\n" + root["error"].asString()));
|
|
|
emit log(errorMessage);
|
|
|
- }
|
|
|
- else {
|
|
|
+ } else {
|
|
|
string fileName = root["file"].asString();
|
|
|
- //TODO: Only do this in getdata when remaining is 0 (when the file is fully downloaded) - maybe set text to "downloading.." in between
|
|
|
+ // TODO: Only do this in getdata when remaining is 0 (when the file is fully downloaded) - maybe set text to "downloading.." in between
|
|
|
emit receivingDisableDownloadButton(QString::fromStdString(string(fileName)));
|
|
|
}
|
|
|
}
|