issue #3307 - Configuration file paths containing spaces don't work

issue solved
This commit is contained in:
jerry 2014-05-28 12:05:05 +00:00
parent 23f762a623
commit ae4d8cee2a
1 changed files with 6 additions and 1 deletions

View File

@ -589,7 +589,12 @@ bool MainWindow::serverArgs(QStringList& args, QString& app)
args << "--log" << logFilename; args << "--log" << logFilename;
} }
args << "-c" << configFilename() << "--address" << address(); QString configFilename = this->configFilename();
#if defined(Q_OS_WIN)
// wrap in quotes in case username contains spaces.
configFilename = QString("\"%1\"").arg(configFilename);
#endif
args << "-c" << configFilename << "--address" << address();
return true; return true;
} }