def import_data(self, filenames=None): NamespaceBrowser._orig_import_data(self, filenames) self.save_button.setEnabled(self.filename is not None)