Commit 41f2b4a0 authored by Benjamin Jakimow's avatar Benjamin Jakimow
Browse files

fixed map refresh after TSD visibility update


Signed-off-by: Benjamin Jakimow's avatarBenjamin Jakimow benjamin.jakimow@geo.hu-berlin.de <benjamin.jakimow@geo.hu-berlin.de>
parent d6643298
Pipeline #13950 failed with stage
in 5 seconds
......@@ -761,6 +761,7 @@ class EOTimeSeriesViewer(QgisInterface, QObject):
self.timeSeries().sigLoadingTaskFinished.disconnect(self.onPostDataLoading)
def lockCentralWidgetSize(self, b: bool):
"""
Locks or release the current central widget size
......
......@@ -1389,15 +1389,16 @@ class MapWidget(QFrame):
if isinstance(self.mTimeSeries, TimeSeries):
self.mTimeSeries.sigVisibilityChanged.disconnect(self._updateCanvasDates)
self.mTimeSeries.sigTimeSeriesDatesRemoved.disconnect(self.__updateCanvasDates)
self.mTimeSeries.sigTimeSeriesDatesRemoved.disconnect(self._updateCanvasDates)
self.mTimeSeries.sigTimeSeriesDatesAdded.disconnect(self._updateSliderRange)
self.mTimeSeries.sigTimeSeriesDatesRemoved.disconnect(self._updateSliderRange)
self.mTimeSeries.sigFindOverlapTaskFinished.disconnect(self._updateCanvasDates)
self.mTimeSeries = ts
if isinstance(self.mTimeSeries, TimeSeries):
self.mTimeSeries.sigVisibilityChanged.connect(self._updateCanvasDates)
self.mTimeSeries.sigTimeSeriesDatesRemoved.connect(self._updateCanvasDates)
self.mTimeSeries.sigFindOverlapTaskFinished.connect(self._updateCanvasDates)
self.mTimeSeries.sigTimeSeriesDatesAdded.connect(self._updateSliderRange)
self.mTimeSeries.sigTimeSeriesDatesRemoved.connect(self._updateSliderRange)
......
......@@ -1418,6 +1418,7 @@ class TimeSeries(QAbstractItemModel):
sigTimeSeriesDatesRemoved = pyqtSignal(list)
sigLoadingTaskFinished = pyqtSignal()
sigFindOverlapTaskFinished = pyqtSignal()
sigSensorAdded = pyqtSignal(SensorInstrument)
sigSensorRemoved = pyqtSignal(SensorInstrument)
......@@ -1996,8 +1997,11 @@ class TimeSeries(QAbstractItemModel):
self.sigLoadingTaskFinished.emit()
elif isinstance(task, TimeSeriesFindOverlapTask):
if success and len(task.mIntersections) > 0:
self.onFoundOverlap(task.mIntersections)
if success:
if len(task.mIntersections) > 0:
self.onFoundOverlap(task.mIntersections)
self.sigFindOverlapTaskFinished.emit()
def addTimeSeriesSource(self, source: TimeSeriesSource) -> TimeSeriesDate:
"""
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment