Fuel no longer relies on fossil for the default remote.

FossilOrigin-Name: 6f96b3f7c927e06ac740b9df993a3f19d57eb74a
This commit is contained in:
kostas
2015-07-11 14:44:13 +00:00
parent c087569d2b
commit e0c9080555
6 changed files with 19 additions and 24 deletions

View File

@@ -406,9 +406,15 @@ bool Workspace::setRemoteDefault(const QUrl& url)
}
//------------------------------------------------------------------------------
const QUrl & Workspace::getRemoteDefault() const
QUrl Workspace::getRemoteDefault() const
{
return fossil().getDefaultRemoteUrl();
for(remote_map_t::const_iterator it=remotes.begin(); it!=remotes.end(); ++it)
{
if(it->isDefault)
return it->url;
}
return QUrl();
}
//------------------------------------------------------------------------------