Commit 8488ce62 authored by Andre Hartmann's avatar Andre Hartmann Committed by André Hartmann
Browse files

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's avatarOrgad Shaneh <>
Reviewed-by: Tobias Hunger's avatarTobias Hunger <>
parent c64374b7
......@@ -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;
const QList<QString> remotes = remotesList.keys();
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