Skip to content

Commit

Permalink
Fixup for flexible clipboard export
Browse files Browse the repository at this point in the history
Commit 2060d75
introduced a segfault.
  • Loading branch information
chris2511 committed Aug 17, 2024
1 parent 17f79d3 commit cc69abb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions widgets/XcaTreeView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -533,8 +533,9 @@ void XcaTreeView::showContextMenu(QContextMenuEvent *e,
setShortcut(QKeySequence::Delete);
subExport = menu->addMenu(tr("Export"));
const pki_export *xport = pki_export::by_id(Settings[ClipboardSettings]);
subExport->addAction(QString("%1 (%2)")
.arg(tr("Clipboard")).arg(xport->desc), this,
if (xport)
subExport->addAction(QString("%1 (%2)").arg(
tr("Clipboard")).arg(xport->desc), this,
SLOT(pem2clipboard()))->setShortcut(QKeySequence::Copy);
subExport->addAction(tr("File"), this, SLOT(exportItems()))->
setShortcut(QKeySequence::Save);
Expand Down

0 comments on commit cc69abb

Please sign in to comment.