GUI: Remove ; from the end of the include/define strings in dialog.

This commit is contained in:
Kimmo Varis 2010-07-13 12:40:20 +03:00
parent 4a1708013e
commit cc64907edb
1 changed files with 6 additions and 0 deletions

View File

@ -72,6 +72,9 @@ void ProjectFileDialog::SetIncludepaths(const QStringList &includes)
includestr += dir; includestr += dir;
includestr += ";"; includestr += ";";
} }
// Remove ; from the end of the string
if (includestr.endsWith(';'))
includestr = includestr.left(includestr.length() - 1);
mUI.mEditIncludePaths->setText(includestr); mUI.mEditIncludePaths->setText(includestr);
} }
@ -84,5 +87,8 @@ void ProjectFileDialog::SetDefines(const QStringList &defines)
definestr += define; definestr += define;
definestr += ";"; definestr += ";";
} }
// Remove ; from the end of the string
if (definestr.endsWith(';'))
definestr = definestr.left(definestr.length() - 1);
mUI.mEditDefines->setText(definestr); mUI.mEditDefines->setText(definestr);
} }