Commit 997aa723 authored by Christoph Cullmann's avatar Christoph Cullmann 🐮
Browse files

remove hard timeout

no longer needed + tries to access already deleted stuff
parent 858b18d7
......@@ -361,16 +361,6 @@ void GitWidget::runPushPullCmd(const QStringList &args)
enableCancel(git);
git->setArguments(args);
git->start(QProcess::ReadOnly);
// kill after 40 seconds
QTimer::singleShot(40000, this, [git, this] {
if (git->state() == QProcess::Running) {
sendMessage(i18n("Git operation timed-out. Killing..."), true);
git->kill();
git->deleteLater();
hideCancel();
}
});
}
void GitWidget::stage(const QStringList &files, bool)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment