Trash dir doesn't support file creation, thus disable the Create New menu and button.
|1369 ↗||(On Diff #29515)|
Is this needed, given the writability check in dolphinviewactionhandler.cpp? And if it is, should it be same same writability check here, instead of a string comparison for "trash"?
In theory an ioslave could support creating new files but not new folders, so this is wrong.
As I said, this problem should be addressed in KNewFileMenu.
The short-term workaround is to check whether the url is a trash:/ url. The proper fix would be to implement what was discussed here: https://git.reviewboard.kde.org/r/129741/