(trunk-1615) Start 'New Layout #' from 1. Looked strange starting at 2

This commit is contained in:
Stephen Boddy 2015-09-01 23:04:16 +02:00
parent 94b577484b
commit ac53de6afb

View File

@ -1077,7 +1077,7 @@ class PrefsEditor:
name = _('New Layout')
if name in values:
i = 1
i = 0
while name in values:
i = i + 1
name = '%s %d' % (_('New Layout'), i)