fail on trying to rename a version with the empty string

This commit is contained in:
xdrm-brackets 2018-05-09 17:45:52 +02:00
parent 78c3d1c02d
commit dd52ed39bc
1 changed files with 3 additions and 1 deletions

View File

@ -200,8 +200,10 @@ export default {
// get current version
var cur = this.get_vcurrent();
if( cur.id < 0 )
if( cur.id < 0 || this.version.newName.length < 1 ){
this.version.edit = false;
return;
}
var newname = this.version.newName;