--- a/TimeTracker/TimeTrackerWidget.py Sat Jan 06 13:08:49 2024 +0100 +++ b/TimeTracker/TimeTrackerWidget.py Sat Oct 26 17:13:16 2024 +0200 @@ -182,7 +182,7 @@ self.commentCombo.itemText(index) for index in range(self.commentCombo.count()) ] - dlg = TimeTrackerEntryDialog(self.__tracker, None, tasks, comments) + dlg = TimeTrackerEntryDialog(self.__tracker, None, tasks, comments, parent=self) if dlg.exec() == QDialog.DialogCode.Accepted: self.__tracker.addTrackerEntry(*dlg.getData()) @@ -206,7 +206,9 @@ self.commentCombo.itemText(index) for index in range(self.commentCombo.count()) ] - dlg = TimeTrackerEntryDialog(self.__tracker, entry, tasks, comments) + dlg = TimeTrackerEntryDialog( + self.__tracker, entry, tasks, comments, parent=self + ) if dlg.exec() == QDialog.DialogCode.Accepted: start, duration, task, comment = dlg.getData()