forked from qt-creator/qt-creator
Git: Disallow whitespace in topic on Push to Gerrit dialog
Change-Id: I02416c8a55fcdfdea1cbe349f7e78204c0200fd9 Reviewed-by: Petar Perisin <petar.perisin@gmail.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
3fbbf1c963
commit
ba4473aa45
@@ -35,6 +35,7 @@
|
||||
|
||||
#include <QDateTime>
|
||||
#include <QDir>
|
||||
#include <QRegExpValidator>
|
||||
|
||||
namespace Gerrit {
|
||||
namespace Internal {
|
||||
@@ -135,6 +136,9 @@ GerritPushDialog::GerritPushDialog(const QString &workingDir, const QString &rev
|
||||
connect(m_ui->branchComboBox, SIGNAL(currentIndexChanged(int)), this, SLOT(setChangeRange()));
|
||||
setRemoteBranches();
|
||||
m_ui->reviewersLineEdit->setText(reviewerList);
|
||||
|
||||
m_ui->topicLineEdit->setValidator(new QRegExpValidator(QRegExp(QLatin1String("^\\S+$")), this));
|
||||
|
||||
m_valid = true;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user