From f327ba3014cee11695aa4ceff839bdacb6bd46e3 Mon Sep 17 00:00:00 2001 From: Alexander Bock Date: Sun, 14 Jun 2015 18:21:10 +0200 Subject: [PATCH] Remove warning in CMakeLists Enable download and request-download functionality --- apps/Launcher/ext/libtorrent/CMakeLists.txt | 2 +- apps/Launcher/syncwidget.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/Launcher/ext/libtorrent/CMakeLists.txt b/apps/Launcher/ext/libtorrent/CMakeLists.txt index 6e8c73a9da..d9050522fc 100644 --- a/apps/Launcher/ext/libtorrent/CMakeLists.txt +++ b/apps/Launcher/ext/libtorrent/CMakeLists.txt @@ -213,7 +213,7 @@ else () target_compile_options(libtorrent PUBLIC "-fexceptions" "-Wno-c++11-extensions") endif () -if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang") +if (${CMAKE_CXX_COMPILER_ID} STREQUAL "Clang") target_compile_options(libtorrent PUBLIC "-fcolor-diagnostics") endif () diff --git a/apps/Launcher/syncwidget.cpp b/apps/Launcher/syncwidget.cpp index f5b953f8b9..b72f953458 100644 --- a/apps/Launcher/syncwidget.cpp +++ b/apps/Launcher/syncwidget.cpp @@ -148,7 +148,7 @@ void SyncWidget::clear() { } void SyncWidget::handleDirectFiles(QString module, DirectFiles files) { - return; + //return; qDebug() << "Direct Files"; for (const DirectFile& f : files) { qDebug() << f.url << " -> " << f.destination; @@ -162,7 +162,7 @@ void SyncWidget::handleDirectFiles(QString module, DirectFiles files) { } void SyncWidget::handleFileRequest(QString module, FileRequests files) { - return; + //return; qDebug() << "File Requests"; for (const FileRequest& f : files) { qDebug() << f.identifier << " (" << f.version << ")" << " -> " << f.destination;