Fixed issue where setting a default remote occasionally fails
FossilOrigin-Name: 6850f2915d4dfb3760de45d7bdb3f8d1c5658dc6
This commit is contained in:
@@ -387,10 +387,12 @@ bool Workspace::setRemoteDefault(const QUrl& url)
|
||||
{
|
||||
Q_ASSERT(url.password().isEmpty());
|
||||
|
||||
const QString &url_str = url.toString();
|
||||
|
||||
bool found = false;
|
||||
for(remote_map_t::iterator it=remotes.begin(); it!=remotes.end(); ++it)
|
||||
{
|
||||
if(it->url == url)
|
||||
if(it->url.toString() == url_str) // FIXME: Use strings as QUrl to QUrl comparisons sometime fail!?
|
||||
{
|
||||
it->isDefault = true;
|
||||
found = true;
|
||||
|
Reference in New Issue
Block a user