From d8d5c3194bf3df5228e485054492764ff28ed81d Mon Sep 17 00:00:00 2001 From: Erik Verbruggen Date: Thu, 11 Apr 2024 17:20:18 +0200 Subject: [PATCH] Rename `crashMenu` to `debugMenu` --- src/gui/owncloudgui.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/gui/owncloudgui.cpp b/src/gui/owncloudgui.cpp index b3f98f0a736..f5c54c06705 100644 --- a/src/gui/owncloudgui.cpp +++ b/src/gui/owncloudgui.cpp @@ -641,17 +641,17 @@ void ownCloudGui::updateContextMenu() _contextMenu->addSeparator(); if (_app->debugMode()) { - auto *crashMenu = _contextMenu->addMenu(QStringLiteral("Debug actions")); - crashMenu->addAction(QStringLiteral("Crash if asserts enabled - OC_ENSURE"), _app, [] { + auto *debugMenu = _contextMenu->addMenu(QStringLiteral("Debug actions")); + debugMenu->addAction(QStringLiteral("Crash if asserts enabled - OC_ENSURE"), _app, [] { if (OC_ENSURE(false)) { Q_UNREACHABLE(); } }); - crashMenu->addAction(QStringLiteral("Crash if asserts enabled - Q_ASSERT"), _app, [] { Q_ASSERT(false); }); - crashMenu->addAction(QStringLiteral("Crash now - Utility::crash()"), _app, [] { Utility::crash(); }); - crashMenu->addAction(QStringLiteral("Crash now - OC_ENFORCE()"), _app, [] { OC_ENFORCE(false); }); - crashMenu->addAction(QStringLiteral("Crash now - qFatal"), _app, [] { qFatal("la Qt fatale"); }); - crashMenu->addAction(QStringLiteral("Restart now"), _app, [] { RestartManager::requestRestart(); }); + debugMenu->addAction(QStringLiteral("Crash if asserts enabled - Q_ASSERT"), _app, [] { Q_ASSERT(false); }); + debugMenu->addAction(QStringLiteral("Crash now - Utility::crash()"), _app, [] { Utility::crash(); }); + debugMenu->addAction(QStringLiteral("Crash now - OC_ENFORCE()"), _app, [] { OC_ENFORCE(false); }); + debugMenu->addAction(QStringLiteral("Crash now - qFatal"), _app, [] { qFatal("la Qt fatale"); }); + debugMenu->addAction(QStringLiteral("Restart now"), _app, [] { RestartManager::requestRestart(); }); } _contextMenu->addSeparator();