]> cloud.milkyroute.net Git - dolphin.git/commit
Disable all the 'create new' items when in the Trash
authorNathaniel Graham <nate@kde.org>
Sun, 6 May 2018 20:06:16 +0000 (14:06 -0600)
committerNathaniel Graham <nate@kde.org>
Mon, 7 May 2018 20:55:14 +0000 (14:55 -0600)
commite133c4557ecc37ed3f7e1b9418306aa8cc516865
treec8e3460a6cdccd267046a5907da889d6ee4999e8
parent90e1cc9c03aed8299583f7714e05809d32d73357
Disable all the 'create new' items when in the Trash

Summary:
Disable all the items in the 'create new' menu when the active view is in the trash,
because they're not useful and don't even work. We don't disable the entire menu
because it's useful to be able to see what specific things are disabled.

This can be reverted once T8234 is implemented.

BUG: 332463
FIXED-IN: 18.08.0

Test Plan:
- Enter the trash with and without a split view; the 'create new' menu items are all disabled
- Be looking at something other than the trash with and without a split view; the 'create new' menu items are all enabled
- Toggle between split views (one in the trash, one elsewhere); menu is correct for both cases

Out of the trash:
{F5837042}

In the trash:
{F5837043}

Reviewers: #dolphin, broulik, elvisangelaccio, markg

Reviewed By: #dolphin, elvisangelaccio, markg

Subscribers: markg, elvisangelaccio

Differential Revision: https://phabricator.kde.org/D12731
src/dolphinmainwindow.cpp