[app] Fixed criteria of a valid folder name

This commit is contained in:
Slava Monich 2015-11-30 23:17:43 +02:00
parent ed218a6f03
commit a89e489f7a

View file

@ -119,8 +119,7 @@ MouseArea {
visible: opacity > 0
//% "Enter folder name"
placeholderText: qsTrId("shelf-title-placeholder")
onTextChanged: console.log(text)
EnterKey.enabled: text.length > 0 && text.indexOf("/") < 0
EnterKey.enabled: text.length > 0 && text !== "." && text !== ".." && text.indexOf("/") < 0
EnterKey.onClicked: {
if (_editing) {
if (text) {