Disable menu actions when read-only/locked

Authored by jnoack on Mar 20 2018, 12:35 AM.

Description

Disable menu actions when read-only/locked

Summary:
This patch addresses the following points:

  • Ignore most DBus methods
  • Disable the following actions:

clear-history, clear-history-and-reset, edit-current-profile, switch-profile
adjust-history, send-signal, zmodem-upload, edit-rename (tab bar)

  • Session updates all views correctly when readonly changes

Test Plan:

  • Actions do not show when locked
  • DBus methods are ignored when locked
  • Multiple views in one session get correctly updated

Reviewers: hindenburg, Konsole

Reviewed By: hindenburg, Konsole

Subscribers: ngraham, hindenburg, Konsole

Tags: Konsole

Differential Revision: https://phabricator.kde.org/D11341

(cherry picked from commit 3a1d350b6742bfd673f10f7a1f0957e9f4d95ed5)

Details

Committed
hindenburgMar 25 2018, 1:58 PM
Reviewer
Konsole
Differential Revision
D11341: Disable menu actions when read-only/locked
Parents
R319:be6f33bde426: GIT_SILENT Upgrade KDE Applications version to 18.03.80.
Branches
Unknown
Tags
Unknown