Mercurial > hg > easyhg
diff src/multichoicedialog.cpp @ 565:c2e212ab0068
Make it possible to set an empty remote URL, fixing #357
author | Chris Cannam |
---|---|
date | Wed, 29 Feb 2012 10:38:28 +0000 |
parents | 533519ebc0cb |
children | 98f57888d893 |
line wrap: on
line diff
--- a/src/multichoicedialog.cpp Tue Feb 28 16:59:25 2012 +0000 +++ b/src/multichoicedialog.cpp Wed Feb 29 10:38:28 2012 +0000 @@ -265,7 +265,9 @@ void MultiChoiceDialog::updateOkButton() { - if (m_argTypes[m_currentChoice] == UrlToDirectoryArg) { + if (m_defaultEmpty[m_currentChoice]) { + m_okButton->setEnabled(true); + } else if (m_argTypes[m_currentChoice] == UrlToDirectoryArg) { m_okButton->setEnabled(getArgument() != "" && getAdditionalArgument() != ""); } else {