Fix Portable Executuable

This commit is contained in:
Syping 2021-08-09 15:46:52 +02:00
parent 1b6a7cf3c3
commit 97e02b0b57

View file

@ -98,9 +98,9 @@ int main(int argc, char *argv[])
return variant.toInt();
}
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
else if (variant.typeId() == QMetaType::QString) {
else if (variant.typeId() == QMetaType::QByteArray) {
#else
else if (variant.type() == QVariant::String) {
else if (variant.type() == QVariant::ByteArray) {
#endif
if (variant.toString() == "GuiExecuted" || variant.toString() == "CliExecuted") {
return a.exec();