Commit 173ed5b6 authored by David Schulz's avatar David Schulz

qtcdebugger: don't abort unregister if Debugger.Default is not defined

Task-number: QTCREATORBUG-19252
Change-Id: Idc986a52276c40f20a983495ab4423c8753a9dda
Reviewed-by: default avatarRobert Loehning <robert.loehning@qt.io>
Reviewed-by: David Schulz's avatarDavid Schulz <david.schulz@qt.io>
parent e05f2889
......@@ -460,8 +460,7 @@ static bool unregisterDebuggerKey(const WCHAR *key,
break;
}
QString oldDebugger;
if (!registryReadStringKey(handle, debuggerRegistryDefaultValueNameC, &oldDebugger, errorMessage))
break;
registryReadStringKey(handle, debuggerRegistryDefaultValueNameC, &oldDebugger, errorMessage);
// Re-register old debugger or delete key if it was empty.
if (oldDebugger.isEmpty()) {
if (!registryDeleteValue(handle, debuggerRegistryValueNameC, errorMessage))
......
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