forked from qt-creator/qt-creator
PushToGerrit: Do not allow spaces in the reviewers edit
Task-number: QTCREATORBUG-11930 Change-Id: I0566fe2ef1d6e5ad9d99256d8a57a8e876a2e0c1 Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
b354d86014
commit
e5b2c079ca
@@ -160,9 +160,10 @@ GerritPushDialog::GerritPushDialog(const QString &workingDir, const QString &rev
|
||||
updateCommits(m_ui->localBranchComboBox->currentIndex());
|
||||
setRemoteBranches();
|
||||
|
||||
QRegExpValidator *noSpaceValidator = new QRegExpValidator(QRegExp(QLatin1String("^\\S+$")), this);
|
||||
m_ui->reviewersLineEdit->setText(reviewerList);
|
||||
|
||||
m_ui->topicLineEdit->setValidator(new QRegExpValidator(QRegExp(QLatin1String("^\\S+$")), this));
|
||||
m_ui->reviewersLineEdit->setValidator(noSpaceValidator);
|
||||
m_ui->topicLineEdit->setValidator(noSpaceValidator);
|
||||
|
||||
m_valid = true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user