diff options
Diffstat (limited to 'src/tools/qtcdebugger')
-rw-r--r-- | src/tools/qtcdebugger/CMakeLists.txt | 18 | ||||
-rw-r--r-- | src/tools/qtcdebugger/main.cpp | 9 |
2 files changed, 27 insertions, 0 deletions
diff --git a/src/tools/qtcdebugger/CMakeLists.txt b/src/tools/qtcdebugger/CMakeLists.txt new file mode 100644 index 0000000000..22b1ca8e2d --- /dev/null +++ b/src/tools/qtcdebugger/CMakeLists.txt @@ -0,0 +1,18 @@ +# +# Copyright (C) YourCompany. All rights reserved. +# +# GENERATED BY CPP-DEPENDENCIES - do not edit, your changes will be lost +# If you must edit, remove these two lines to avoid regeneration + +project(src.tools.qtcdebugger) + + +add_library(${PROJECT_NAME} STATIC + main.cpp +) + +target_link_libraries(${PROJECT_NAME} + PRIVATE + src +) + diff --git a/src/tools/qtcdebugger/main.cpp b/src/tools/qtcdebugger/main.cpp index 38507c8539..6beda7c1ec 100644 --- a/src/tools/qtcdebugger/main.cpp +++ b/src/tools/qtcdebugger/main.cpp @@ -419,6 +419,15 @@ static bool registerDebuggerKey(const WCHAR *key, do { if (!openRegistryKey(HKEY_LOCAL_MACHINE, key, true, &handle, access, errorMessage)) break; + + // Make sure to automatically open the qtcdebugger dialog on a crash + QString autoVal; + registryReadStringKey(handle, autoRegistryValueNameC, &autoVal, errorMessage); + if (autoVal != "1") { + if (!registryWriteStringKey(handle, autoRegistryValueNameC, "1", errorMessage)) + break; + } + // Save old key, which might be missing QString oldDebugger; if (isRegistered(handle, call, errorMessage, &oldDebugger)) { |