KDirOperator: Only enable "Create New" menu if the selected item is a directory
ClosedPublic

Authored by daandemeyer on Aug 22 2019, 8:12 AM.

Details

Summary

Currently, when right-clicking a file in KDirOperator, the "Create New" menu is available and can be used. However, when creating any new directory or file, the operation fails since we're trying to create a directory or file under a file.

This patch modifies KDirOperator to only enable the "Create New" menu when the selected item is a directory.

Diff Detail

Repository
R241 KIO
Lint
Lint Skipped
Unit
Unit Tests Skipped
daandemeyer created this revision.Aug 22 2019, 8:12 AM
Restricted Application added a project: Frameworks. · View Herald TranscriptAug 22 2019, 8:12 AM
Restricted Application added a subscriber: kde-frameworks-devel. · View Herald Transcript
daandemeyer requested review of this revision.Aug 22 2019, 8:12 AM
ngraham accepted this revision.Aug 22 2019, 5:06 PM
ngraham added a subscriber: ngraham.

Do you need someone to commit this for you? If so, can you please provide an email address?

This revision is now accepted and ready to land.Aug 22 2019, 5:06 PM

Email: daan.j.demeyer@gmail.com (added to my profile as well)

This revision was automatically updated to reflect the committed changes.