]> cloud.milkyroute.net Git - dolphin.git/commit
Rename multiple files: Determine correctly if the name pattern is valid
authorFrank Reininghaus <frank78ac@googlemail.com>
Thu, 2 May 2013 17:23:19 +0000 (19:23 +0200)
committerFrank Reininghaus <frank78ac@googlemail.com>
Thu, 2 May 2013 17:23:38 +0000 (19:23 +0200)
commita70fd061243d4e321b207bc6a3139e2c89825494
tree6b23c67db7f6bd4f787b200ba938d43f1dc9b1a5
parent8f4d13dab8165e4c60c320d4b867e8476bdb041b
Rename multiple files: Determine correctly if the name pattern is valid

The "Rename" button in the dialog should be enabled if and only if the
"new name" pattern is valid. This is the case if the pattern contains
exactly one sequence of '#', which will be replaced by digits.

This patch fixes the problem that
(a) A pattern that contains a single '#' is not considered valid, and
(b) A pattern without any '#' at all is not recognized as invalid.

BUG: 318942
FIXED-IN: 4.10.3
REVIEW: 110223
src/views/renamedialog.cpp