fix undo, allow main window focusable

This commit is contained in:
Damien Elmes 2008-11-14 18:27:45 +09:00
parent b575170883
commit 2661c1d3a2
2 changed files with 2 additions and 1 deletions

View file

@ -928,6 +928,7 @@ class AnkiQt(QMainWindow):
self.currentCard = None
self.deck.s.flush()
self.lastCardBackup.toDB(self.deck.s)
self.deck.rebuildCounts()
self.reset()
# Other menu operations

View file

@ -144,7 +144,7 @@
</size>
</property>
<property name="focusPolicy" >
<enum>Qt::ClickFocus</enum>
<enum>Qt::TabFocus</enum>
</property>
<property name="frameShape" >
<enum>QFrame::NoFrame</enum>