close all windows on sync

This commit is contained in:
Damien Elmes 2008-12-10 20:10:42 +09:00
parent 887d95203d
commit 8b538ee20f

View file

@ -1162,6 +1162,8 @@ Error was:\n%(f1)s\n...\n%(f2)s""") % {'f1': fmt1, 'f2': fmt2})
self.sourcesToCheck = [] self.sourcesToCheck = []
self.deck = None self.deck = None
self.loadAfterSync = reload self.loadAfterSync = reload
# hide all deck-associated dialogs
ui.dialogs.closeAll()
# bug triggered by preferences dialog - underlying c++ widgets are not # bug triggered by preferences dialog - underlying c++ widgets are not
# garbage collected until the middle of the child thread # garbage collected until the middle of the child thread
import gc; gc.collect() import gc; gc.collect()