diff --git a/qrenderdoc/Code/Interface/PersistantConfig.cpp b/qrenderdoc/Code/Interface/PersistantConfig.cpp index 0c8838474..e65d43a20 100644 --- a/qrenderdoc/Code/Interface/PersistantConfig.cpp +++ b/qrenderdoc/Code/Interface/PersistantConfig.cpp @@ -298,8 +298,13 @@ void PersistantConfig::UpdateEnumeratedProtocolDevices() QMap oldHosts; for(int i = RemoteHostList.count() - 1; i >= 0; i--) + { if(RemoteHostList[i].Protocol()) - oldHosts[RemoteHostList[i].Hostname()] = RemoteHostList.takeAt(i); + { + RemoteHost host = RemoteHostList.takeAt(i); + oldHosts[host.Hostname()] = host; + } + } for(RemoteHost host : enumeratedDevices) {