kdeui: log KAction warning to the correct debug area

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2024-03-22 14:42:24 +02:00
parent 3ce3fcf34b
commit a324de58dc
2 changed files with 1 additions and 2 deletions

View file

@ -26,7 +26,6 @@
260 kdeui (KXmlGui) 260 kdeui (KXmlGui)
264 kdeui (KIconLoader) 264 kdeui (KIconLoader)
265 kdeui (KIconEffect) 265 kdeui (KIconEffect)
283 kdeui (K*Gesture*)
299 kdeui (KNotification) 299 kdeui (KNotification)
300 kdeui (KConfigDialogManager) 300 kdeui (KConfigDialogManager)
700 kutils (KSettings::Dialog) 700 kutils (KSettings::Dialog)

View file

@ -186,7 +186,7 @@ void KAction::setGlobalShortcut(const KShortcut &shortcut, ShortcutTypes type,
if (!d->globalShortcutEnabled) { if (!d->globalShortcutEnabled) {
changed = true; changed = true;
if (objectName().isEmpty() || objectName().startsWith(QLatin1String("unnamed-"))) { if (objectName().isEmpty() || objectName().startsWith(QLatin1String("unnamed-"))) {
kWarning(283) << "Attempt to set global shortcut for action without objectName()." kWarning(129) << "Attempt to set global shortcut for action without objectName()."
" Read the setGlobalShortcut() documentation."; " Read the setGlobalShortcut() documentation.";
return; return;
} }