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

Commit cedc2df

Browse files
committed
CloneDlg: remove signal/slot connections of steps
The "finished" status of a step is artificially generated through it's progress (>=100%). The progress dialog now does this by itself.
1 parent 3a1cd4e commit cedc2df

File tree

2 files changed

+0
-24
lines changed

2 files changed

+0
-24
lines changed

Modules/Remotes/CloneRepositoryDlg.cpp

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

181179
mProgress->addActivity(tr("Clone <b>%1</b> to <b>%2</b>")
@@ -187,29 +185,10 @@ void CloneDlg::accept()
187185
this, &CloneDlg::onTransportProgress );
188186
connect( clone, &Git::CloneOperation::checkoutProgress,
189187
this, &CloneDlg::onCheckoutProgress );
190-
connect( clone, &Git::CloneOperation::doneDownloading,
191-
this, &CloneDlg::doneDownload );
192-
connect( clone, &Git::CloneOperation::doneIndexing,
193-
this, &CloneDlg::doneIndexing );
194188

195189
clone->execute();
196190
}
197191

198-
void CloneDlg::doneDownload()
199-
{
200-
mProgress->finished(sender(), QStringLiteral("transfer"));
201-
}
202-
203-
void CloneDlg::doneIndexing()
204-
{
205-
mProgress->finished(sender(), QStringLiteral("index"));
206-
}
207-
208-
void CloneDlg::doneCheckout()
209-
{
210-
mProgress->finished(sender(), QStringLiteral("checkout"));
211-
}
212-
213192
void CloneDlg::rootCloneFinished()
214193
{
215194
Git::BaseOperation* operation = static_cast<Git::BaseOperation*>( sender() );

Modules/Remotes/CloneRepositoryDlg.hpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,6 @@ private slots:
8484
void checkValid();
8585

8686
void beginDownloading();
87-
void doneDownload();
88-
void doneIndexing();
89-
void doneCheckout();
9087
void rootCloneFinished();
9188

9289
void onCheckoutProgress(const QString& fileName,

0 commit comments

Comments
 (0)