Fix QString conversion from CLI args

This commit is contained in:
Martchus 2017-02-01 17:12:15 +01:00
parent 10bb953202
commit 7ec7528173
2 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@ set(META_APP_DESCRIPTION "Tray application for Syncthing")
set(META_APP_CATEGORIES "System;Utility;Network;FileTransfer")
set(META_VERSION_MAJOR 0)
set(META_VERSION_MINOR 4)
set(META_VERSION_PATCH 0)
set(META_VERSION_PATCH 1)
set(META_VERSION_EXACT_SONAME ON)
project(${META_PROJECT_NAME})

View File

@ -39,7 +39,7 @@ void exitApplication(int statusCode)
inline QString argToQString(const char *arg)
{
#if !defined(PLATFORM_WINDOWS)
return argToQString(arg);
return QString::fromLocal8Bit(arg);
#else
// under Windows args are converted to UTF-8
return QString::fromUtf8(arg);