forked from qt-creator/qt-creator
Fix build on non-windows
This commit is contained in:
@@ -171,8 +171,8 @@ void GitSubmitEditorWidget::authorInformationChanged()
|
|||||||
bool GitSubmitEditorWidget::emailIsValid() const
|
bool GitSubmitEditorWidget::emailIsValid() const
|
||||||
{
|
{
|
||||||
int pos = m_gitSubmitPanelUi.emailLineEdit->cursorPosition();
|
int pos = m_gitSubmitPanelUi.emailLineEdit->cursorPosition();
|
||||||
return m_emailValidator->validate(m_gitSubmitPanelUi.emailLineEdit->text(), pos)
|
QString text = m_gitSubmitPanelUi.emailLineEdit->text();
|
||||||
== QValidator::Acceptable;
|
return m_emailValidator->validate(text, pos) == QValidator::Acceptable;
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace Internal
|
} // namespace Internal
|
||||||
|
|||||||
Reference in New Issue
Block a user