From 8488ce627b82238c7737c24909d7f6164b2061dd Mon Sep 17 00:00:00 2001 From: Andre Hartmann Date: Wed, 13 Sep 2017 20:30:12 +0200 Subject: [PATCH] Git: Refresh RemoteModel when last remote was removed The existing check prevented a model update if the remote list was empty and therefore kept an orphan entry and forbid adding the remote again until the dialog was re-opened. Task-number: QTCREATORBUG-18904 Change-Id: I5a45919a8af5108d44f85f87a64a00cf459af3bb Reviewed-by: Orgad Shaneh Reviewed-by: Tobias Hunger --- src/plugins/git/remotemodel.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/plugins/git/remotemodel.cpp b/src/plugins/git/remotemodel.cpp index 7cd14b12582..59164963d66 100644 --- a/src/plugins/git/remotemodel.cpp +++ b/src/plugins/git/remotemodel.cpp @@ -188,9 +188,6 @@ bool RemoteModel::refresh(const QString &workingDirectory, QString *errorMessage QMap remotesList = GitPlugin::client()->synchronousRemotesList(workingDirectory, errorMessage); - if (remotesList.isEmpty()) - return false; - beginResetModel(); m_remotes.clear(); const QList remotes = remotesList.keys();