Skip to content
This repository was archived by the owner on Jun 3, 2024. It is now read-only.

Commit 3610153

Browse files
committed
CloneDlg: signal/slot connection for checkout progress is only required in a non-bare clone context
1 parent 5c0c580 commit 3610153

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Modules/Remotes/CloneRepositoryDlg.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,8 @@ void CloneDlg::accept()
174174
if (!clone->bare()) {
175175
steps << ProgressDlg::StepInfo{ QStringLiteral("checkout"),
176176
tr("Checkout the worktree.") };
177+
connect( clone, &Git::CloneOperation::checkoutProgress,
178+
this, &CloneDlg::onCheckoutProgress );
177179
}
178180

179181
mProgress->addActivity(tr("Clone <b>%1</b> to <b>%2</b>")
@@ -183,8 +185,6 @@ void CloneDlg::accept()
183185
this, &CloneDlg::rootCloneFinished );
184186
connect( clone, &Git::CloneOperation::transportProgress,
185187
this, &CloneDlg::onTransportProgress );
186-
connect( clone, &Git::CloneOperation::checkoutProgress,
187-
this, &CloneDlg::onCheckoutProgress );
188188

189189
clone->execute();
190190
}

0 commit comments

Comments
 (0)