diff options
| author | 2025-07-17 13:26:45 +0200 | |
|---|---|---|
| committer | 2025-07-17 13:26:45 +0200 | |
| commit | 735c673d8865e3abfe1d9505af5f107306bb82d3 (patch) | |
| tree | 8337a96387dfd33bb197cac7796768e63faa9f16 /src/modules/upnp/Service.cpp | |
| parent | KviControlCodes: fix compilation with Qt >= 6.9 (#2705) (diff) | |
| download | KVIrc-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.cpp | 8 |
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) { |
