mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-20 23:47:23 -06:00
Fix web UI in qBittorrent nox
This commit is contained in:
@@ -237,6 +237,7 @@ void HttpConnection::respond() {
|
|||||||
QFile file(url);
|
QFile file(url);
|
||||||
if(!file.open(QIODevice::ReadOnly))
|
if(!file.open(QIODevice::ReadOnly))
|
||||||
{
|
{
|
||||||
|
qDebug("File %s was not found!", qPrintable(url));
|
||||||
respondNotFound();
|
respondNotFound();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
19
src/src.pro
19
src/src.pro
@@ -142,8 +142,9 @@ macx {
|
|||||||
contains(DEFINES, DISABLE_GUI) {
|
contains(DEFINES, DISABLE_GUI) {
|
||||||
QT = core
|
QT = core
|
||||||
TARGET = qbittorrent-nox
|
TARGET = qbittorrent-nox
|
||||||
|
} else {
|
||||||
|
TARGET = qbittorrent
|
||||||
}
|
}
|
||||||
else:TARGET = qbittorrent
|
|
||||||
|
|
||||||
# QMAKE_CXXFLAGS_RELEASE += -fwrapv
|
# QMAKE_CXXFLAGS_RELEASE += -fwrapv
|
||||||
# QMAKE_CXXFLAGS_DEBUG += -fwrapv
|
# QMAKE_CXXFLAGS_DEBUG += -fwrapv
|
||||||
@@ -211,15 +212,17 @@ os2:LIBS += -ltorrent-rasterbar \
|
|||||||
}
|
}
|
||||||
unix:!macx:contains(DEFINES, WITH_GEOIP_EMBEDDED):message("You chose to embed GeoIP database in qBittorrent executable.")
|
unix:!macx:contains(DEFINES, WITH_GEOIP_EMBEDDED):message("You chose to embed GeoIP database in qBittorrent executable.")
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
# Resource files
|
# Resource files
|
||||||
RESOURCES = icons.qrc \
|
RESOURCES = icons.qrc \
|
||||||
lang.qrc \
|
lang.qrc \
|
||||||
search.qrc \
|
search.qrc \
|
||||||
webui.qrc
|
webui.qrc
|
||||||
|
|
||||||
# Add GeoIP resource file if the GeoIP database
|
# Add GeoIP resource file if the GeoIP database
|
||||||
# should be embedded in qBittorrent executable
|
# should be embedded in qBittorrent executable
|
||||||
contains(DEFINES, WITH_GEOIP_EMBEDDED) {
|
contains(DEFINES, WITH_GEOIP_EMBEDDED) {
|
||||||
exists("geoip/GeoIP.dat") {
|
exists("geoip/GeoIP.dat") {
|
||||||
message("GeoIP.dat was found in src/geoip/.")
|
message("GeoIP.dat was found in src/geoip/.")
|
||||||
RESOURCES += geoip.qrc
|
RESOURCES += geoip.qrc
|
||||||
@@ -228,8 +231,8 @@ RESOURCES = icons.qrc \
|
|||||||
DEFINES -= WITH_GEOIP_EMBEDDED
|
DEFINES -= WITH_GEOIP_EMBEDDED
|
||||||
error("GeoIP.dat was not found in src/geoip/ folder, please follow instructions in src/geoip/README.")
|
error("GeoIP.dat was not found in src/geoip/ folder, please follow instructions in src/geoip/README.")
|
||||||
}
|
}
|
||||||
}
|
} else {
|
||||||
else:message("GeoIP database will not be embedded in qBittorrent executable.")
|
message("GeoIP database will not be embedded in qBittorrent executable.")
|
||||||
}
|
}
|
||||||
|
|
||||||
# Translations
|
# Translations
|
||||||
@@ -331,7 +334,8 @@ contains(DEFINES, DISABLE_GUI) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
!contains(DEFINES, DISABLE_GUI):FORMS += ui/mainwindow.ui \
|
!contains(DEFINES, DISABLE_GUI) {
|
||||||
|
FORMS += ui/mainwindow.ui \
|
||||||
ui/options.ui \
|
ui/options.ui \
|
||||||
ui/about.ui \
|
ui/about.ui \
|
||||||
ui/createtorrent.ui \
|
ui/createtorrent.ui \
|
||||||
@@ -350,6 +354,7 @@ contains(DEFINES, DISABLE_GUI) {
|
|||||||
ui/propertieswidget.ui \
|
ui/propertieswidget.ui \
|
||||||
ui/peer.ui \
|
ui/peer.ui \
|
||||||
ui/confirmdeletiondlg.ui
|
ui/confirmdeletiondlg.ui
|
||||||
|
}
|
||||||
|
|
||||||
contains(DEFINES, DISABLE_GUI) {
|
contains(DEFINES, DISABLE_GUI) {
|
||||||
include(qtsingleapp/qtsinglecoreapplication.pri)
|
include(qtsingleapp/qtsinglecoreapplication.pri)
|
||||||
|
|||||||
Reference in New Issue
Block a user