Fix crash on triggering "Reformat Source" without no more file loaded

Authored by kossebau on Jan 10 2017, 10:18 PM.

Description

Fix crash on triggering "Reformat Source" without no more file loaded

Summary:
Also disable actions "Reformat Source" & "Reformat Line" if no document
is activated

Reviewers: KDevelop, kfunk

Reviewed By: KDevelop, kfunk

Subscribers: kfunk, kdevelop-devel

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

Details