Index: bk_manager/trunk/ui/MainWindow.py =================================================================== diff --git a/bk_manager/trunk/ui/MainWindow.py b/bk_manager/trunk/ui/MainWindow.py --- a/bk_manager/trunk/ui/MainWindow.py (revision 88) +++ b/bk_manager/trunk/ui/MainWindow.py (revision 89) @@ -501,7 +501,7 @@ def finished_manual_check(self): self.txtProgress.clear() - + if not(self.bool_state_manual_check): return @@ -520,18 +520,15 @@ bool_return = functions.remove_dir(var_tmpdata, self) if not(bool_return): self.txtInfo.append("Error deleting directory: "+var_tmpdata) - self.bool_state_burning = False - return - - - + self.bool_state_manual_check = False + return + self.var_n_check_dirs +=1 - + if self.var_n_check_dirs >= len(self.list_check_dirs) : self.bool_state_manual_check = False self.function_manual_check_final() return - self.function_manual_check() @@ -662,7 +659,10 @@ if os.path.isfile("parameters.conf"): os.remove("parameters.conf") if os.path.isfile("burning.conf"): - os.remove("burning.conf") + os.remove("burning.conf") + + functions2.eject_devices(self) # Expulsa las bandejas de los dispostivos de grabacion + @@ -714,6 +714,21 @@ """ Slot documentation goes here. """ + + if self.btnCHstart.text() == "STOP": + self.btnCHstart.setText("START") #Cambio el texto del boton + self.bool_state_manual_check = False + self.process_manual_check.terminate() + + #borrar el contenido de tmpdata + var_tmpdata=self.var_TDpath+"/tmpdata" + bool_return = functions.remove_dir(var_tmpdata, self) + if not(bool_return): + self.txtInfo.append("Error deleting directory: "+var_tmpdata) + + return + + list_dirs = functions2.mounted_devices() if list_dirs == "FATAL ERROR": self.txtInfo.append("ERROR") @@ -728,7 +743,6 @@ self.btnTDpath.setEnabled(False) #Deshabilito el boton que permite cambiar la ruta de verificacion self.btnCHstart.setText("STOP") #Cambio el texto del boton - self.txtInfo.append(self.btnCHstart.text()) self.function_manual_check() @@ -768,5 +782,5 @@ def function_manual_check_final(self): self.txtInfo.append("Manual check process is complete") self.btnCHstart.setText("START") #Cambio el texto del boton - - + functions2.eject_devices_2(self) # Expulsa las bandejas de los dispostivos de grabacion +