aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/upnp/Service.cpp
diff options
context:
space:
mode:
authorGravatar ctrlaltca2025-07-17 13:26:45 +0200
committerGravatar GitHub2025-07-17 13:26:45 +0200
commit735c673d8865e3abfe1d9505af5f107306bb82d3 (patch)
tree8337a96387dfd33bb197cac7796768e63faa9f16 /src/modules/upnp/Service.cpp
parentKviControlCodes: fix compilation with Qt >= 6.9 (#2705) (diff)
downloadKVIrc-735c673d8865e3abfe1d9505af5f107306bb82d3.tar.gz
KVIrc-735c673d8865e3abfe1d9505af5f107306bb82d3.tar.bz2
KVIrc-735c673d8865e3abfe1d9505af5f107306bb82d3.zip
Adapt to Qt 6.9 deprecations (#2706)
* Adapt to Qt 6.9 deprecations * Windows 2019 images are no more available no github, switch to 2022 * Wordaround Qt5 missing QTimezone::UTC
Diffstat (limited to 'src/modules/upnp/Service.cpp')
-rw-r--r--src/modules/upnp/Service.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/modules/upnp/Service.cpp b/src/modules/upnp/Service.cpp
index 50035138d..c08c85a11 100644
--- a/src/modules/upnp/Service.cpp
+++ b/src/modules/upnp/Service.cpp
@@ -242,7 +242,15 @@ namespace UPnP
// Parse the XML
QString errorMessage;
+#if (QT_VERSION < QT_VERSION_CHECK(6, 9, 0))
bool error = !xml.setContent(response, false, &errorMessage);
+#else
+ auto result = xml.setContent(response, QDomDocument::ParseOption::Default);
+ bool error = !(bool)result;
+ if(error) {
+ errorMessage = result.errorMessage;
+ }
+#endif
if(!error)
{