summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndre Hartmann <aha_1980@gmx.de>2017-09-13 20:30:12 +0200
committerAndré Hartmann <aha_1980@gmx.de>2017-09-14 10:44:43 +0000
commit8488ce627b82238c7737c24909d7f6164b2061dd (patch)
tree72f7153ac2eb1530b5b1d93e4c9be1e9762d4a3c
parentc64374b7c730d73986011fcb59b3efe1f22c7aaf (diff)
downloadqt-creator-8488ce627b82238c7737c24909d7f6164b2061dd.tar.gz
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 <orgads@gmail.com> Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
-rw-r--r--src/plugins/git/remotemodel.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/plugins/git/remotemodel.cpp b/src/plugins/git/remotemodel.cpp
index 7cd14b1258..59164963d6 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<QString,QString> remotesList
= GitPlugin::client()->synchronousRemotesList(workingDirectory, errorMessage);
- if (remotesList.isEmpty())
- return false;
-
beginResetModel();
m_remotes.clear();
const QList<QString> remotes = remotesList.keys();