clearer options group warning (#661)

This commit is contained in:
Damien Elmes 2013-05-16 16:50:48 +09:00
parent bbe248698a
commit 23b5cbd13a
2 changed files with 12 additions and 2 deletions

View file

@ -91,8 +91,12 @@ class DeckConf(QDialog):
continue
if d['conf'] == conf['id']:
cnt += 1
self.form.count.setText(ngettext("%d deck uses this options group", \
"%d decks use this options group", cnt) % cnt)
if cnt > 1:
txt = _("Your changes will affect multiple decks. If you wish to "
"change only the current deck, please add a new options group first.")
else:
txt = ""
self.form.count.setText(txt)
def addGroup(self):
name = getOnlyText(_("New options group name:"))

View file

@ -57,12 +57,18 @@
</item>
<item>
<widget class="QLabel" name="count">
<property name="styleSheet">
<string notr="true">* { color: red }</string>
</property>
<property name="text">
<string/>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
<property name="wordWrap">
<bool>true</bool>
</property>
</widget>
</item>
<item>