fixes for build on windows

This commit is contained in:
2026-02-14 14:31:31 +01:00
parent c2918e79c3
commit b772b91e6e
5 changed files with 23 additions and 9 deletions
+2
View File
@@ -63,6 +63,7 @@ int main(int argc, char *argv[])
url.setHost(QString::fromStdString(location["href"].as<std::string>()));
#else
url.setHost(parser.value(host_option));
#if defined(__linux__)
if (parser.value(host_option).endsWith(".local"))
{
QProcess p;
@@ -85,6 +86,7 @@ int main(int argc, char *argv[])
ret[1].removeLast();
url.setHost(ret[1]);
}
#endif
#endif
url.setPort(parser.value(port_option).toInt());
QString default_sim = parser.value(default_sim_option);