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:
@ -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;
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
Reference in New Issue
Block a user