~emihalac/mnemosyne-proj/mnemosyne-proj

« back to all changes in this revision

Viewing changes to mnemosyne/mnemosyne/pyqt_ui/compact_database_dlg.py

  • Committer: Peter Bienstman
  • Date: 2017-03-08 07:53:01 UTC
  • Revision ID: peter.bienstman@ugent.be-20170308075301-9fft7h5tkncbarcq
Fix bug in compact database.

Show diffs side-by-side

added added

removed removed

Lines of Context:
119
119
    def activate(self):
120
120
        self.exec_()
121
121
 
122
 
    def accept(self):
 
122
    def accept(self):        
123
123
        defragment_database = \
124
124
            (self.defragment_database.checkState() == QtCore.Qt.Checked)
125
125
        delete_unused_media_files = \
133
133
            unused_media_files = self.database().unused_media_files()
134
134
            if len(unused_media_files) != 0:
135
135
                DeleteUnusedMediaFilesDlg(\
136
 
                    self.component_manager, unused_media_files).activate()
 
136
                    component_manager=self.component_manager, 
 
137
                    unused_media_files=unused_media_files).activate()
137
138
        if defragment_database or archive_old_logs:
138
139
            self.compact_in_thread(defragment_database, archive_old_logs)
139
140
        else: