# HG changeset patch # User Chris Cannam # Date 1330511908 0 # Node ID c2e212ab00683280f55a0599400deb119b196abd # Parent 39cac58b4f9283e6ba048ae47c9d5f431ed52e21 Make it possible to set an empty remote URL, fixing #357 diff -r 39cac58b4f92 -r c2e212ab0068 src/mainwindow.cpp --- a/src/mainwindow.cpp Tue Feb 28 16:59:25 2012 +0000 +++ b/src/mainwindow.cpp Wed Feb 29 10:38:28 2012 +0000 @@ -289,7 +289,7 @@ path = s.value("default").toString(); } - std::cerr << "hgQueryPaths: setting m_remoteRepoPath to " << m_remoteRepoPath << " from file " << hgrc.absoluteFilePath() << std::endl; +// std::cerr << "hgQueryPaths: setting m_remoteRepoPath to " << m_remoteRepoPath << " from file " << hgrc.absoluteFilePath() << std::endl; m_remoteRepoPath = path; diff -r 39cac58b4f92 -r c2e212ab0068 src/multichoicedialog.cpp --- 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 {