mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 15:02:21 -04:00
work around another win32 crash
This commit is contained in:
parent
c09ad29161
commit
24155cf337
1 changed files with 1 additions and 0 deletions
|
@ -707,6 +707,7 @@ class Editor(object):
|
||||||
recent = self.mw.pm.profile['recentColours']
|
recent = self.mw.pm.profile['recentColours']
|
||||||
recent.remove(colour)
|
recent.remove(colour)
|
||||||
recent.append(colour)
|
recent.append(colour)
|
||||||
|
self.mw.app.processEvents()
|
||||||
self.web.eval("setFormat('forecolor', '%s')" % colour)
|
self.web.eval("setFormat('forecolor', '%s')" % colour)
|
||||||
self.colourDiag.close()
|
self.colourDiag.close()
|
||||||
self.colourChanged()
|
self.colourChanged()
|
||||||
|
|
Loading…
Reference in a new issue