Skip to content

Commit

Permalink
2nd Fixup for flexible clipboard export
Browse files Browse the repository at this point in the history
Re-enable clipboard-export for Requests, Templates and CRLs.
  • Loading branch information
chris2511 committed Aug 21, 2024
1 parent 671a842 commit 6582b43
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions widgets/XcaTreeView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -533,9 +533,11 @@ void XcaTreeView::showContextMenu(QContextMenuEvent *e,
setShortcut(QKeySequence::Delete);
subExport = menu->addMenu(tr("Export"));
const pki_export *xport = pki_export::by_id(Settings[ClipboardSettings]);
QString clipboard = tr("Clipboard");
if (xport)
subExport->addAction(QString("%1 (%2)").arg(
tr("Clipboard")).arg(xport->desc), this,
clipboard = QString("%1 (%2)").arg(clipboard).arg(xport->desc);

subExport->addAction(clipboard, this,
SLOT(pem2clipboard()))->setShortcut(QKeySequence::Copy);
subExport->addAction(tr("File"), this, SLOT(exportItems()))->
setShortcut(QKeySequence::Save);
Expand Down

0 comments on commit 6582b43

Please sign in to comment.