issue #3404 - Log path needs to be in quotes on windows

issue solved
This commit is contained in:
jerry 2014-05-28 11:59:14 +00:00
parent 3d6413fada
commit 23f762a623
1 changed files with 7 additions and 1 deletions

View File

@ -580,7 +580,13 @@ bool MainWindow::serverArgs(QStringList& args, QString& app)
if (appConfig().logToFile())
{
appConfig().persistLogDir();
args << "--log" << appConfig().logFilename();
QString logFilename = appConfig().logFilename();
#if defined(Q_OS_WIN)
// wrap in quotes in case username contains spaces.
logFilename = QString("\"%1\"").arg(logFilename);
#endif
args << "--log" << logFilename;
}
args << "-c" << configFilename() << "--address" << address();