浏览代码

autoformat

Cyamond 5 年之前
父节点
当前提交
73dcd66548
共有 1 个文件被更改,包括 3 次插入4 次删除
  1. 3 4
      gui/src/qmlhandler.cpp

+ 3 - 4
gui/src/qmlhandler.cpp

@@ -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)));
 		}
 	}