diff --git a/src/fime/import_task.py b/src/fime/import_task.py index ccbeef2..677e963 100644 --- a/src/fime/import_task.py +++ b/src/fime/import_task.py @@ -92,5 +92,4 @@ class ImportTask(QtWidgets.QDialog): self.completer.update_urls() self.line_edit.setText("") self.raise_() - self.activateWindow() self.line_edit.setFocus() diff --git a/src/fime/report.py b/src/fime/report.py index 1ec438f..c4bd028 100644 --- a/src/fime/report.py +++ b/src/fime/report.py @@ -1,5 +1,7 @@ from typing import List, Optional +from loguru import logger + try: from PySide6 import QtCore, QtGui, QtWidgets except ImportError: @@ -103,7 +105,6 @@ class ReportDialog(QtWidgets.QDialog): self.refresh_table() self.update_prev_next() self.raise_() - self.activateWindow() def save(self): self._report.save(self._report_data) diff --git a/src/fime/task_edit.py b/src/fime/task_edit.py index 08c4362..1884c3b 100644 --- a/src/fime/task_edit.py +++ b/src/fime/task_edit.py @@ -88,4 +88,3 @@ class TaskEdit(QtWidgets.QDialog): def showEvent(self, _): self.list.setStringList(self._task_data.tasks) self.raise_() - self.activateWindow() diff --git a/src/fime/worklog.py b/src/fime/worklog.py index a08ba40..8ee4405 100644 --- a/src/fime/worklog.py +++ b/src/fime/worklog.py @@ -181,7 +181,6 @@ class WorklogDialog(QtWidgets.QDialog): self.update_all() self.upload_button.setEnabled(False) self.raise_() - self.activateWindow() def update_all(self): self.refresh_table()