diff --git a/src/plugins/git/gerrit/gerritpushdialog.cpp b/src/plugins/git/gerrit/gerritpushdialog.cpp index 25bc5a10bcbf98dcb8bb9c1e39e990d278001b17..c1e5c0618c805653a5fa20e3eefdddd8866c5681 100644 --- a/src/plugins/git/gerrit/gerritpushdialog.cpp +++ b/src/plugins/git/gerrit/gerritpushdialog.cpp @@ -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; }