improve warning message

This commit is contained in:
Damien Elmes 2008-10-28 00:23:02 +09:00
parent 8d7b8feaa1
commit ca7f27ea93
2 changed files with 10 additions and 8 deletions

View file

@ -1477,9 +1477,12 @@ class AnkiQt(QMainWindow):
ret = self.deck.fixIntegrity() ret = self.deck.fixIntegrity()
if ret == "ok": if ret == "ok":
ret = _("""\ ret = _("""\
No problems found. Some data structures have been rebuilt in case No problems found. Some data structures have been rebuilt in case<br>
they were causing problems. On the next sync, all cards will be they were causing problems.<p>
sent to the server.""") <b>On the next sync, all cards will be sent to the server.</b><br>
If you have changes on the server and have not synced locally,<br>
do not sync your deck. Restore your deck from an automatic<br>
backup and then run this command again after syncing.""")
ui.utils.showInfo(ret) ui.utils.showInfo(ret)
ret = True ret = True
else: else:

View file

@ -460,12 +460,11 @@
<property name="title" > <property name="title" >
<string>&amp;Advanced</string> <string>&amp;Advanced</string>
</property> </property>
<addaction name="actionMergeModels" />
<addaction name="separator" />
<addaction name="actionCheckMediaDatabase" />
<addaction name="separator" />
<addaction name="actionCheckDatabaseIntegrity" /> <addaction name="actionCheckDatabaseIntegrity" />
<addaction name="actionCheckMediaDatabase" />
<addaction name="actionOptimizeDatabase" /> <addaction name="actionOptimizeDatabase" />
<addaction name="separator" />
<addaction name="actionMergeModels" />
</widget> </widget>
<widget class="QMenu" name="menuPlugins" > <widget class="QMenu" name="menuPlugins" >
<property name="title" > <property name="title" >
@ -911,7 +910,7 @@
<normaloff>:/icons/sqlitebrowser.png</normaloff>:/icons/sqlitebrowser.png</iconset> <normaloff>:/icons/sqlitebrowser.png</normaloff>:/icons/sqlitebrowser.png</iconset>
</property> </property>
<property name="text" > <property name="text" >
<string>Check Database Integrity</string> <string>Check Database..</string>
</property> </property>
</action> </action>
<action name="actionOptimizeDatabase" > <action name="actionOptimizeDatabase" >