Skip to content
Snippets Groups Projects
Commit 5ff80548 authored by Tobias Hunger's avatar Tobias Hunger
Browse files

Fix build on non-windows

parent a017e543
No related branches found
No related tags found
No related merge requests found
......@@ -171,8 +171,8 @@ void GitSubmitEditorWidget::authorInformationChanged()
bool GitSubmitEditorWidget::emailIsValid() const
{
int pos = m_gitSubmitPanelUi.emailLineEdit->cursorPosition();
return m_emailValidator->validate(m_gitSubmitPanelUi.emailLineEdit->text(), pos)
== QValidator::Acceptable;
QString text = m_gitSubmitPanelUi.emailLineEdit->text();
return m_emailValidator->validate(text, pos) == QValidator::Acceptable;
}
} // namespace Internal
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment