mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
commit
dadd3417f7
@ -522,7 +522,12 @@ class Main(MainWindow, MainWindowMixin, DeviceMixin, # {{{
|
|||||||
|
|
||||||
|
|
||||||
def shutdown(self, write_settings=True):
|
def shutdown(self, write_settings=True):
|
||||||
self.library_view.model().db.clean()
|
try:
|
||||||
|
cf = self.library_view.model().db.clean
|
||||||
|
except:
|
||||||
|
pass
|
||||||
|
else:
|
||||||
|
cf()
|
||||||
for action in self.iactions.values():
|
for action in self.iactions.values():
|
||||||
if not action.shutting_down():
|
if not action.shutting_down():
|
||||||
return
|
return
|
||||||
|
Loading…
x
Reference in New Issue
Block a user