Skip to content

Commit cc64907

Browse files
committed
GUI: Remove ; from the end of the include/define strings in dialog.
1 parent 4a17080 commit cc64907

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎gui/projectfiledialog.cpp‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,9 @@ void ProjectFileDialog::SetIncludepaths(const QStringList &includes)
7272
includestr += dir;
7373
includestr += ";";
7474
}
75+
// Remove ; from the end of the string
76+
if (includestr.endsWith(';'))
77+
includestr = includestr.left(includestr.length() - 1);
7578
mUI.mEditIncludePaths->setText(includestr);
7679
}
7780

@@ -84,5 +87,8 @@ void ProjectFileDialog::SetDefines(const QStringList &defines)
8487
definestr += define;
8588
definestr += ";";
8689
}
90+
// Remove ; from the end of the string
91+
if (definestr.endsWith(';'))
92+
definestr = definestr.left(definestr.length() - 1);
8793
mUI.mEditDefines->setText(definestr);
8894
}

0 commit comments

Comments
 (0)