From 2a690d049b712377cbf01c347cc97765005713d1 Mon Sep 17 00:00:00 2001 From: Pablo Gil Date: Wed, 4 Dec 2024 10:05:52 +0100 Subject: [PATCH] fix duplicate command --- src/app/GUI/mainwindow.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/app/GUI/mainwindow.cpp b/src/app/GUI/mainwindow.cpp index 1a78ee931..35312b148 100644 --- a/src/app/GUI/mainwindow.cpp +++ b/src/app/GUI/mainwindow.cpp @@ -572,7 +572,9 @@ void MainWindow::setupMenuBar() const auto qAct = new NoShortcutAction(tr("Duplicate", "MenuBar_Edit")); mEditMenu->addAction(qAct); qAct->setIcon(QIcon::fromTheme("duplicate")); +#ifndef Q_OS_MAC qAct->setShortcut(Qt::CTRL + Qt::Key_D); +#endif mActions.duplicateAction->connect(qAct); cmdAddAction(qAct); }