Fix reloading summary on collapsed Time Log widget after closing Time Log dialog
This commit is contained in:
parent
4db40e6b4b
commit
0b3249c7ef
1 changed files with 4 additions and 2 deletions
|
|
@ -158,10 +158,12 @@ class TimeLogWidget(QFrame):
|
|||
dlg = TimeLogDialog(self._db, self._current_date, self)
|
||||
dlg.exec()
|
||||
|
||||
# Always refresh summary when the dialog closes; the user may have changed entries
|
||||
if self.toggle_btn.isChecked():
|
||||
# Always refresh summary + header totals
|
||||
self._reload_summary()
|
||||
|
||||
if self.toggle_btn.isChecked():
|
||||
self.summary_label.setText(strings._("time_log_collapsed_hint"))
|
||||
|
||||
|
||||
class TimeLogDialog(QDialog):
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue