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:
Kimmo Varis 2010-11-11 22:07:17 +02:00
parent 1e503cbad5
commit 53e9938afe
1 changed files with 2 additions and 0 deletions

View File

@ -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);
} }