diff options
author | Orgad Shaneh <orgad.shaneh@audiocodes.com> | 2014-08-14 17:52:45 +0300 |
---|---|---|
committer | Orgad Shaneh <orgads@gmail.com> | 2014-08-14 18:17:44 +0200 |
commit | e5b2c079ca7a3ffed6e85e4e0869e4de3b37ed63 (patch) | |
tree | 312bb5f384b5f840b6a7d8d7eaeeee179c728873 | |
parent | b354d86014a8827fd44359f16242268aaca1a583 (diff) |
PushToGerrit: Do not allow spaces in the reviewers edit
Task-number: QTCREATORBUG-11930
Change-Id: I0566fe2ef1d6e5ad9d99256d8a57a8e876a2e0c1
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
-rw-r--r-- | src/plugins/git/gerrit/gerritpushdialog.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/plugins/git/gerrit/gerritpushdialog.cpp b/src/plugins/git/gerrit/gerritpushdialog.cpp index 13a5eb9a4d..a09938d876 100644 --- a/src/plugins/git/gerrit/gerritpushdialog.cpp +++ b/src/plugins/git/gerrit/gerritpushdialog.cpp @@ -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; } |