From df8fba3c308ee9e8a5f3346dc842c1825d17ded7 Mon Sep 17 00:00:00 2001 From: Faerbit Date: Wed, 1 Dec 2021 00:06:43 +0100 Subject: [PATCH] Fix more bugs --- src/fime/worklog.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/fime/worklog.py b/src/fime/worklog.py index fe67989..d25f938 100644 --- a/src/fime/worklog.py +++ b/src/fime/worklog.py @@ -178,7 +178,6 @@ class WorklogDialog(QtWidgets.QDialog): def showEvent(self, _): # reinitialize to purge caches self.rest = WorklogRest(self.config) - self._statuses = [] self.update_all() self.upload_button.setEnabled(False) @@ -186,6 +185,7 @@ class WorklogDialog(QtWidgets.QDialog): self.refresh_table() self.update_title() self.update_prev_next() + self._statuses = [] self.update_statuses() self.update_timer.start() @@ -328,8 +328,6 @@ class WorklogDialog(QtWidgets.QDialog): self._worklog_data[row][0] = self.tableWidget.item(row, 0).text() self.save() self.update_all() - # status view update might get filtered (if still fetching) in update_all, therefore we force it here again - self.update_status_view(row) self.upload_button.setEnabled(False) @QtCore.Slot()