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

Commit 612a311

Browse files
committed
clone dialog: adjust finished signal to ProgressDlg
1 parent 6850091 commit 612a311

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

Modules/Remotes/CloneRepositoryDlg.cpp

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -215,15 +215,13 @@ void CloneDlg::rootCloneFinished()
215215
Git::BaseOperation* operation = static_cast<Git::BaseOperation*>( sender() );
216216
Q_ASSERT( operation );
217217

218-
if ( operation->result() )
219-
{
220-
mProgress->finished(sender());
221-
return;
218+
if ( operation->result() ) {
219+
mProgress->finished(operation);
220+
}
221+
else {
222+
mProgress->setError(operation, operation->result().errorText());
222223
}
223224

224-
QMessageBox::critical(mProgress, tr("Errors while cloning repository."),
225-
tr("Cloning failed:\nGit Message: %1").arg(operation->result().errorText()));
226-
mProgress->reject();
227225
}
228226

229227
void CloneDlg::onCheckoutProgress(const QString& fileName, quint64 totalFiles,

0 commit comments

Comments
 (0)