projectmanagerview: Make cut-paste work by fixing project manager's Paste action

Authored by aspotashev on Feb 24 2017, 6:48 PM.

Description

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.

  1. Copy/cut-paste from a Git-based project into another open project.
  2. Copy/cut-paste from a place not tracked by KDevelop (use Dolphin to copy/cut).
  3. Copy/cut-paste into a folder in KDevelop without write permissions -> expected to display a warning dialog "Paste Failed".
  4. 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.
  5. 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