From a451cf2d5fe3faafe4ebdf3db1fa6616d331e8e4 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Thu, 17 Jun 2010 11:55:47 +0000 Subject: [PATCH] Fix Web UI in nox --- src/httpconnection.cpp | 1 + src/src.pro | 28 +++++++++++++++------------- 2 files changed, 16 insertions(+), 13 deletions(-) diff --git a/src/httpconnection.cpp b/src/httpconnection.cpp index 04683850f..6255cc162 100644 --- a/src/httpconnection.cpp +++ b/src/httpconnection.cpp @@ -237,6 +237,7 @@ void HttpConnection::respond() { QFile file(url); if(!file.open(QIODevice::ReadOnly)) { + qDebug("File %s was not found!", qPrintable(url)); respondNotFound(); return; } diff --git a/src/src.pro b/src/src.pro index 43fddcc30..d75bc66dc 100644 --- a/src/src.pro +++ b/src/src.pro @@ -142,8 +142,9 @@ macx { contains(DEFINES, DISABLE_GUI) { QT = core TARGET = qbittorrent-nox +} else { + TARGET = qbittorrent } -else:TARGET = qbittorrent # QMAKE_CXXFLAGS_RELEASE += -fwrapv # QMAKE_CXXFLAGS_DEBUG += -fwrapv @@ -210,6 +211,7 @@ os2:LIBS += -ltorrent-rasterbar \ message("On Mac OS X, GeoIP database must be embedded.") } unix:!macx:contains(DEFINES, WITH_GEOIP_EMBEDDED):message("You chose to embed GeoIP database in qBittorrent executable.") +} # Resource files RESOURCES = icons.qrc \ @@ -217,19 +219,19 @@ RESOURCES = icons.qrc \ search.qrc \ webui.qrc - # Add GeoIP resource file if the GeoIP database - # should be embedded in qBittorrent executable - contains(DEFINES, WITH_GEOIP_EMBEDDED) { - exists("geoip/GeoIP.dat") { - message("GeoIP.dat was found in src/geoip/.") - RESOURCES += geoip.qrc - } - else { - DEFINES -= WITH_GEOIP_EMBEDDED - error("GeoIP.dat was not found in src/geoip/ folder, please follow instructions in src/geoip/README.") - } +# Add GeoIP resource file if the GeoIP database +# should be embedded in qBittorrent executable +contains(DEFINES, WITH_GEOIP_EMBEDDED) { + exists("geoip/GeoIP.dat") { + message("GeoIP.dat was found in src/geoip/.") + RESOURCES += geoip.qrc + } + else { + DEFINES -= WITH_GEOIP_EMBEDDED + error("GeoIP.dat was not found in src/geoip/ folder, please follow instructions in src/geoip/README.") } -else:message("GeoIP database will not be embedded in qBittorrent executable.") +} else { + message("GeoIP database will not be embedded in qBittorrent executable.") } # Translations