Fix close_progress_bar with no current_pbar
@@ -237,6 +237,8 @@ class QtActivityDialog(QDialog):
progress object whose QtLabeledProgressBar to close
"""
current_pbar = self.get_pbar_from_prog(prog)
+ if not current_pbar:
+ return
parent_widget = current_pbar.parent()
current_pbar.close()
current_pbar.deleteLater()
