Skip to content

Don't insert null QActions

Ahmad Samir requested to merge work/ahmad/null-actions into master

This fixes a warning: QWidget::insertAction: Attempt to insert null action

that was because the undo/redo actions were set to null if the document is readonly, instead just disable them like the rest of the actions when in readonly mode.

Found while working on Ark, which uses katepart to preview text files.

NO_CHANGELOG

Merge request reports