Git BranchAddDialog: fix branch renaming

replace invalid characters with '_'. To allow pasting of text with
invalid chars inside

Change-Id: Ibc0d3dde2252235a931b51ad73ae2eef527be547
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: André Hartmann <aha_1980@gmx.de>
This commit is contained in:
Nikita Baryshnikov
2016-07-19 23:17:38 +03:00
parent 9669a84f61
commit 9750a82445

View File

@@ -70,11 +70,7 @@ public:
{ {
Q_UNUSED(pos) Q_UNUSED(pos)
// NoGos input.replace(m_invalidChars, QLatin1String("_"));
if (input.contains(m_invalidChars))
return Invalid;
// "Intermediate" patterns, may change to Acceptable when user edits further: // "Intermediate" patterns, may change to Acceptable when user edits further: