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

Authored by daandemeyer on Thu, Aug 22, 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
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
daandemeyer created this revision.Thu, Aug 22, 8:12 AM
Restricted Application added a project: Frameworks. · View Herald TranscriptThu, Aug 22, 8:12 AM
Restricted Application added a subscriber: kde-frameworks-devel. · View Herald Transcript
daandemeyer requested review of this revision.Thu, Aug 22, 8:12 AM
ngraham accepted this revision.Thu, Aug 22, 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.Thu, Aug 22, 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.