--- a/UI/UserInterface.py Sun Sep 12 13:56:03 2010 +0200 +++ b/UI/UserInterface.py Sun Sep 12 15:02:07 2010 +0200 @@ -4903,12 +4903,7 @@ if ex: fn += ex - res = Shortcuts.exportShortcuts(fn) - if not res: - E5MessageBox.critical(self, - self.trUtf8("Export Keyboard Shortcuts"), - self.trUtf8("<p>The keyboard shortcuts could not be written to file" - " <b>{0}</b>.</p>").format(fn)) + Shortcuts.exportShortcuts(fn) def __importShortcuts(self): """ @@ -5053,6 +5048,7 @@ if f.open(QIODevice.ReadOnly): reader = TasksReader(f, viewer = self.taskViewer) reader.readXML() + f.close() else: E5MessageBox.critical(self, self.trUtf8("Read tasks"),