diff --git a/dist/changes-4.10.1.md b/dist/changes-4.10.1.md index 6e5d0db956d..7d942ba68ab 100644 --- a/dist/changes-4.10.1.md +++ b/dist/changes-4.10.1.md @@ -19,9 +19,13 @@ you can check out from the public Git repository. For example: * Fixed that text moved around when resizing and zooming (QTCREATORBUG-4756) +## All Projects + +* Fixed `Qt Creator Plugin` wizard (QTCREATORBUG-22945) + ## Debugging -* Fixed more layout restoration issues (QTCREATORBUG-22286, QTCREATORBUG-22938) +* Fixed more layout restoration issues (QTCREATORBUG-22286, QTCREATORBUG-22415, QTCREATORBUG-22938) ### LLDB @@ -36,7 +40,13 @@ you can check out from the public Git repository. For example: ### macOS +* Fixed debugging with Xcode 11 (QTCREATORBUG-22955) * Fixed window stacking order after closing file dialog (QTCREATORBUG-22906) +* Fixed window size after exiting fullscreen + +### QNX + +* Fixed that QNX compiler could not be selected for C ## Credits for these changes go to: @@ -44,7 +54,9 @@ Aleksei German Alexander Akulich Andre Hartmann André Pönitz +Christian Kandeler Christian Stenger +Cristian Adam David Schulz Eike Ziller Knud Dollereder @@ -53,5 +65,5 @@ Lisandro Damián Nicanor Pérez Meyer Nikolai Kosjar Orgad Shaneh Richard Weickelt +Sergey Belyashov Thomas Hartmann - diff --git a/src/plugins/baremetal/sdcctoolchain.cpp b/src/plugins/baremetal/sdcctoolchain.cpp index 199d8ef0aa6..a7b62686c8e 100644 --- a/src/plugins/baremetal/sdcctoolchain.cpp +++ b/src/plugins/baremetal/sdcctoolchain.cpp @@ -381,27 +381,41 @@ QList SdccToolChainFactory::autoDetect(const QList &al if (Utils::HostOsInfo::isWindowsHost()) { -#ifdef Q_OS_WIN64 - static const char kRegistryNode[] = "HKEY_LOCAL_MACHINE\\SOFTWARE\\WOW6432Node\\SDCC"; -#else - static const char kRegistryNode[] = "HKEY_LOCAL_MACHINE\\SOFTWARE\\SDCC"; -#endif - - QSettings registry(kRegistryNode, QSettings::NativeFormat); - QString compilerPath = registry.value("Default").toString(); - if (!compilerPath.isEmpty()) { + // Tries to detect the candidate from the 32-bit + // or 64-bit system registry format. + auto probeCandidate = [](QSettings::Format format) { + QSettings registry("HKEY_LOCAL_MACHINE\\SOFTWARE\\SDCC", + format); + QString compilerPath = registry.value("Default").toString(); + if (compilerPath.isEmpty()) + return Candidate{}; // Build full compiler path. compilerPath += "\\bin\\sdcc.exe"; const FilePath fn = FilePath::fromString( QFileInfo(compilerPath).absoluteFilePath()); - if (compilerExists(fn)) { - // Build compiler version. - const QString version = QString("%1.%2.%3").arg( - registry.value("VersionMajor").toString(), - registry.value("VersionMinor").toString(), - registry.value("VersionRevision").toString()); - candidates.push_back({fn, version}); - } + if (!compilerExists(fn)) + return Candidate{}; + // Build compiler version. + const QString version = QString("%1.%2.%3").arg( + registry.value("VersionMajor").toString(), + registry.value("VersionMinor").toString(), + registry.value("VersionRevision").toString()); + return Candidate{fn, version}; + }; + + const QSettings::Format allowedFormats[] = { + QSettings::NativeFormat, +#ifdef Q_OS_WIN + QSettings::Registry32Format, + QSettings::Registry64Format +#endif + }; + + for (const QSettings::Format format : allowedFormats) { + const auto candidate = probeCandidate(format); + if (candidate.compilerPath.isEmpty() || candidates.contains(candidate)) + continue; + candidates.push_back(candidate); } } diff --git a/src/plugins/debugger/debuggerengine.cpp b/src/plugins/debugger/debuggerengine.cpp index 9d59cc0fe07..8fa02ef988d 100644 --- a/src/plugins/debugger/debuggerengine.cpp +++ b/src/plugins/debugger/debuggerengine.cpp @@ -2285,8 +2285,8 @@ void DebuggerEngine::openDisassemblerView(const Location &location) void DebuggerEngine::raiseWatchersWindow() { - if (d->m_watchersView) { - if (auto dock = qobject_cast(d->m_watchersView->parentWidget())) { + if (d->m_watchersView && d->m_watchersWindow) { + if (auto dock = qobject_cast(d->m_watchersWindow->parentWidget())) { if (QAction *act = dock->toggleViewAction()) { if (!act->isChecked()) QTimer::singleShot(1, act, [act] { act->trigger(); }); diff --git a/src/shared/qbs b/src/shared/qbs index 94fe404a5a6..aec975a3f95 160000 --- a/src/shared/qbs +++ b/src/shared/qbs @@ -1 +1 @@ -Subproject commit 94fe404a5a6d7cf91926bcfbd026953994b25815 +Subproject commit aec975a3f95f905b2d63ea1500ace28eddea7b9e