Update gui_context_menus.h

This commit is contained in:
C4ndyF1sh 2025-02-02 02:41:17 +01:00 committed by GitHub
parent 2e292445d1
commit c4b38557e5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -77,13 +77,13 @@ public:
QMenu* copyMenu = new QMenu(tr("Copy info..."), widget); QMenu* copyMenu = new QMenu(tr("Copy info..."), widget);
QAction* copyName = new QAction(tr("Copy Name"), widget); QAction* copyName = new QAction(tr("Copy Name"), widget);
QAction* copySerial = new QAction(tr("Copy Serial"), widget); QAction* copySerial = new QAction(tr("Copy Serial"), widget);
QAction* copyFirmware = new QAction(tr("Copy Firmware"), widget); QAction* copyFirmware = new QAction(tr("Copy Version"), widget);
QAction* copySize = new QAction(tr("Copy Size"), widget); QAction* copySize = new QAction(tr("Copy Size"), widget);
QAction* copyNameAll = new QAction(tr("Copy All"), widget); QAction* copyNameAll = new QAction(tr("Copy All"), widget);
copyMenu->addAction(copyName); copyMenu->addAction(copyName);
copyMenu->addAction(copySerial); copyMenu->addAction(copySerial);
copyMenu->addAction(copyFirmware); copyMenu->addAction(copyVersion);
copyMenu->addAction(copySize); copyMenu->addAction(copySize);
copyMenu->addAction(copyNameAll); copyMenu->addAction(copyNameAll);
@ -351,7 +351,7 @@ public:
clipboard->setText(QString::fromStdString(m_games[itemID].serial)); clipboard->setText(QString::fromStdString(m_games[itemID].serial));
} }
if (selected == copyFirmware) { if (selected == copyVersion) {
QClipboard* clipboard = QGuiApplication::clipboard(); QClipboard* clipboard = QGuiApplication::clipboard();
clipboard->setText(QString::fromStdString(m_games[itemID].version)); clipboard->setText(QString::fromStdString(m_games[itemID].version));
} }