Enable Edit Action in plasmoid mode

Summary:
EditAction is a keyboard activated shortcut that shows a dialog, there's
no reason for it to be available in standalone mode only, especially given the
option to enable the shortcut is available from the plasmoid.

BUG: 374961

Test Plan:
Set shortcut.
Pressed it.
Got a dialog with my clipboard contents

Standalone mode should be unchanged as it was showing it already.

Reviewers: #plasma, mart

Reviewed By: mart

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D4114
wilder-5.14
David Edmundson 9 years ago
parent 083396bfd8
commit dd10d605c3
  1. 1
      klipper/klipper.cpp

@ -173,7 +173,6 @@ Klipper::Klipper(QObject* parent, const KSharedConfigPtr& config, KlipperMode mo
m_editAction = m_collection->addAction(QStringLiteral("edit_clipboard"));
m_editAction->setIcon(QIcon::fromTheme(QStringLiteral("document-properties")));
m_editAction->setText(i18n("&Edit Contents..."));
m_editAction->setVisible(m_mode == KlipperMode::Standalone);
KGlobalAccel::setGlobalShortcut(m_editAction, QKeySequence());
connect(m_editAction, &QAction::triggered, this,
[this]() {

Loading…
Cancel
Save