Commit 00b4beed authored by Milian Wolff's avatar Milian Wolff
Browse files

Gracefully handle the case where the git plugin is disabled.

BUG: 278252
parent b867b9b0
......@@ -34,6 +34,7 @@
#include "kdeprojectsreader.h"
#include <QSortFilterProxyModel>
#include <KFilterProxySearchLine>
#include <KMessageBox>
using namespace KDevelop;
......@@ -95,6 +96,10 @@ VcsJob* KDEProviderWidget::createWorkingCopy(const KUrl& destinationDirectory)
return 0;
IPlugin* plugin = ICore::self()->pluginController()->pluginForExtension("org.kdevelop.IBasicVersionControl", "kdevgit");
if (!plugin) {
KMessageBox::error(0, i18n("The Git plugin could not be loaded which is required to download a KDE project."), i18n("KDE Provider Error"));
return 0;
IBasicVersionControl* vcIface = plugin->extension<IBasicVersionControl>();
VcsJob* ret = vcIface->createWorkingCopy(extractLocation(, destinationDirectory);
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