Commits

Martin Rieser committed bbbd7b2

default, order table by file name and not by review state.

Comments (0)

Files changed (1)

               response = QMessageBox.warning(self, 'Warning', 'Some of the selected files where not commited. So no selected file was marked as done.')
               return
         
-        def finished(ret):
-            self.repo.decrementBusyCount()
-            #refresh the display to update the repo in code review extension
-            self.refresh()
-
-        #cmdline  = ['commit', '--verbose', '--repository', self.repo.root, '--message', '"cr round is done"']
-        #cmdline += [self.repo.wjoin(x) for x in files]
-
-        #self.runner = cmdui.Runner(True, self)
-        #self.runner.commandFinished.connect(finished)
-        self.repo.incrementBusyCount()
-        #self.runner.run(cmdline)
-
-        # mark these files as 'done'
-        #todo, check if files are commited before they are marked as done.
-
+        #mark selected files as done.
         number_success_completed = self.code_review.done_files(files, rev=None)
 
         #refresh the display to make green files
                 self._qui.list_of_files.setRowHeight(row, 18)
 
         self._qui.list_of_files.setSortingEnabled(True)
+        #order table by file name (colum = 5)
+        self._qui.list_of_files.sortItems(5,Qt.AscendingOrder)
         self.relMembersLoaded = True
         self.onTableSelection()