Fixed fossil path detection on windows

The settings dialog now quotes paths to external tools if they contain spaces


FossilOrigin-Name: 208e56425e61f15f00ee2bbe200de18fda7fbc07
This commit is contained in:
kostas
2011-09-03 12:33:47 +00:00
parent aed3800b37
commit ee5f84b75d
4 changed files with 22 additions and 15 deletions

View File

@ -19,7 +19,10 @@ static QString SelectExe(QWidget *parent, const QString &description)
if(!QFile::exists(path))
return QString();
return path;
// Quote path if it contains spaces
if(path.contains(' '))
path = '"'+path + '"';
return path;
}
///////////////////////////////////////////////////////////////////////////////