Commit 4cde4429 authored by Christoph Cullmann's avatar Christoph Cullmann 🐮
Browse files

deactivate Kate command bar if KXMLGui command bar is there

parent 9c11cf1d
......@@ -249,11 +249,15 @@ void KateMainWindow::setupImportantActions()
connect(a, &QAction::triggered, this, &KateMainWindow::slotQuickOpen);
a->setWhatsThis(i18n("Open a form to quick open documents."));
// kate command bar
// kate command bar, only add this if we don't already have the generic one from KXMLGui
// https://invent.kde.org/frameworks/kxmlgui/-/merge_requests/54
// FIXME: remove after we require Frameworks >= 5.83
if (!actionCollection()->action(QStringLiteral("open_kcommand_bar"))) {
a = actionCollection()->addAction(QStringLiteral("view_commandbar_open"));
a->setText(i18n("&Command Bar"));
actionCollection()->setDefaultShortcut(a, QKeySequence(Qt::CTRL | Qt::ALT | Qt::Key_I));
connect(a, &QAction::triggered, this, &KateMainWindow::slotCommandBarOpen);
}
}
void KateMainWindow::setupMainWindow()
......
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