Skip to content

Commit

Permalink
Fixes crash on refresh of remote accounts with gitlab
Browse files Browse the repository at this point in the history
  • Loading branch information
0verEngineer committed Aug 11, 2023
1 parent 8580fd8 commit 2ae23e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/host/GitLab.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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);
Expand Down

0 comments on commit 2ae23e2

Please sign in to comment.