87
90
if (input.endsWith(QLatin1Char('/'))) // no slash at the end (but allowed in the middle)
90
98
// is a valid branch name
95
103
const QRegExp m_invalidChars;
108
BranchAddDialog::BranchAddDialog(const QStringList &localBranches, bool addBranch, QWidget *parent) :
101
110
m_ui(new Ui::BranchAddDialog)
104
113
setWindowTitle(addBranch ? tr("Add Branch") : tr("Rename Branch"));
106
115
connect(m_ui->branchNameEdit, SIGNAL(textChanged(QString)), this, SLOT(updateButtonStatus()));