mirror of
https://github.com/Murmele/Gittyup.git
synced 2024-09-11 10:45:39 +03:00
Fixes crash on refresh of remote accounts with gitlab
This commit is contained in:
parent
8580fd8073
commit
2ae23e22e4
@ -87,8 +87,6 @@ QString GitLab::name() const { return QStringLiteral("GitLab"); }
|
||||
QString GitLab::host() const { return QStringLiteral("gitlab.com"); }
|
||||
|
||||
void GitLab::connect(const QString &defaultPassword) {
|
||||
clearRepos();
|
||||
|
||||
QString token = defaultPassword;
|
||||
if (token.isEmpty())
|
||||
token = password();
|
||||
@ -98,6 +96,8 @@ void GitLab::connect(const QString &defaultPassword) {
|
||||
return;
|
||||
}
|
||||
|
||||
clearRepos();
|
||||
|
||||
QNetworkRequest request(url() + kProjectsFmt.arg(token));
|
||||
request.setHeader(QNetworkRequest::ContentTypeHeader, kContentType);
|
||||
mMgr->get(request);
|
||||
|
Loading…
Reference in New Issue
Block a user