GUI: Add path separator in ProjectFiles dialog.
Add path separator to end of the paths user added via Browse-dialog.
This commit is contained in:
parent
1e503cbad5
commit
53e9938afe
|
@ -176,5 +176,7 @@ void ProjectFileDialog::AppendDirname(QLineEdit *edit, const QString &dir)
|
||||||
QString wholeText = edit->text();
|
QString wholeText = edit->text();
|
||||||
wholeText += ";";
|
wholeText += ";";
|
||||||
wholeText += dir;
|
wholeText += dir;
|
||||||
|
if (!wholeText.endsWith(QDir::separator()))
|
||||||
|
wholeText += QDir::separator();
|
||||||
edit->setText(wholeText);
|
edit->setText(wholeText);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue