diff --git a/qfieldsync/core/offline_converter.py b/qfieldsync/core/offline_converter.py index 44ed0282..c3b90567 100644 --- a/qfieldsync/core/offline_converter.py +++ b/qfieldsync/core/offline_converter.py @@ -228,6 +228,10 @@ def convert(self): QgsProject.instance().setFileName(original_project_path) QApplication.restoreOverrideCursor() + self.offline_editing.layerProgressUpdated.disconnect(self.on_offline_editing_next_layer) + self.offline_editing.progressModeSet.disconnect(self.on_offline_editing_max_changed) + self.offline_editing.progressUpdated.disconnect(self.offline_editing_task_progress) + self.total_progress_updated.emit(100, 100, self.tr('Finished')) def createBaseMapLayer(self, map_theme, layer, tile_size, map_units_per_pixel): diff --git a/qfieldsync/gui/synchronize_dialog.py b/qfieldsync/gui/synchronize_dialog.py index a6313afd..c35d197b 100644 --- a/qfieldsync/gui/synchronize_dialog.py +++ b/qfieldsync/gui/synchronize_dialog.py @@ -114,4 +114,8 @@ def update_mode(self, _, mode_count): @pyqtSlot() def update_done(self): + self.offline_editing.progressStopped.disconnect(self.update_done) + self.offline_editing.layerProgressUpdated.disconnect(self.update_total) + self.offline_editing.progressModeSet.disconnect(self.update_mode) + self.offline_editing.progressUpdated.disconnect(self.update_value) self.offline_editing_done = True