fix mingw compaitiblity

This commit is contained in:
Martin Rotter 2022-06-06 08:47:34 +02:00
parent 68c03688bf
commit b26a2eef40
3 changed files with 6 additions and 3 deletions

View File

@ -26,7 +26,7 @@
<url type="donation">https://github.com/sponsors/martinrotter</url>
<content_rating type="oars-1.1" />
<releases>
<release version="4.2.3" date="2022-06-02"/>
<release version="4.2.3" date="2022-06-06"/>
</releases>
<content_rating type="oars-1.0">
<content_attribute id="violence-cartoon">none</content_attribute>

View File

@ -1,4 +1,7 @@
#include <verrsrc.h>
#define VS_FF_DEBUG 0x00000001L
#define VOS__WINDOWS32 0x00000004L
#define VFT_UNKNOWN 0x00000000L
#define VFT2_UNKNOWN 0x00000000L
IDI_ICON1 ICON "@CMAKE_PROJECT_NAME@.ico"

View File

@ -127,7 +127,7 @@ bool SystemFactory::setAutoStartStatus(AutoStartStatus new_status) {
switch (new_status) {
case AutoStartStatus::Enabled: {
QStringList args = qApp->rawCliArgs();
auto std_args = boolinq::from(args)
auto std_args = boolinq::from(args.begin(), args.end())
.select([](const QString& arg) {
if (arg.contains(QL1S(" ")) && !arg.startsWith(QL1S("\""))) {
return QSL("\"%1\"").arg(arg);