projectmanagerview: Make cut-paste work by fixing project manager's Paste action
Test Plan:
1a. Copy-paste from a Git-based project into the same project.
1b. Same, but cut-paste.
- Copy/cut-paste from a Git-based project into another open project.
- Copy/cut-paste from a place not tracked by KDevelop (use Dolphin to copy/cut).
- Copy/cut-paste into a folder in KDevelop without write permissions -> expected to display a warning dialog "Paste Failed".
- Select a folder [A] and its subitem [B]; cut/copy-paste it -> expected to copy the enclosing folder and select both [A] and [B] in the project manager view.
- Create a folder [A] without write permissions. Choose an item [B] from outside of [A]. Create an item [C] named like [B] inside of [A] (you probably have to "sudo" to gain write permissions). Copy/cut-paste [B] into [A] attempting to overwrite [C]. Expect a warning dialog "Paste Failed". Expect [C] to not be selected in the project manager view (as it hasn't been successfully written to).
Reviewers: mwolff, kfunk
Reviewed By: mwolff
Subscribers: kdevelop-devel
Differential Revision: https://phabricator.kde.org/D4772