Use current item's name in New Directory window.
ClosedPublic

Authored by gengisdave on Apr 9 2016, 2:35 PM.

Details

Reviewers
asensi
martinkostolny
Group Reviewers
Krusader
Summary

Patch for task T2180. The string passed to the new directory window is complete if we are on a directory, and stripped by the extension on files.

The text is always selected; a user that wants the old behaviour (no text at all) starts typing what he wants; if we are on a directory and we press enter without changing the text, the window error appears (instead of a null action for an empty string).

Diff Detail

Lint
Lint Skipped
Unit
Unit Tests Skipped
gengisdave updated this revision to Diff 3240.Apr 9 2016, 2:35 PM
gengisdave retitled this revision from to Use current item's name in New Directory window..
gengisdave updated this object.
gengisdave edited the test plan for this revision. (Show Details)
gengisdave set the repository for this revision to R167 Krusader.
gengisdave added a project: Krusader.
gengisdave updated this revision to Diff 3242.Apr 9 2016, 2:58 PM
gengisdave removed R167 Krusader as the repository for this revision.

Better not use ternary operator

gengisdave updated this revision to Diff 3243.Apr 9 2016, 2:59 PM
gengisdave added a reviewer: Krusader.

Wrong check

martinkostolny accepted this revision.Apr 9 2016, 3:23 PM
martinkostolny added a reviewer: martinkostolny.
martinkostolny added a subscriber: martinkostolny.

Perfect, thanks!

This revision is now accepted and ready to land.Apr 9 2016, 3:23 PM
asensi accepted this revision.Apr 9 2016, 4:35 PM
asensi added a reviewer: asensi.
asensi added a subscriber: asensi.

Thanks!