Remove activateWindow calls, because they are not supported on Wayland, and the dialog seem to open fine without them.

This commit is contained in:
Fabian 2023-04-21 21:45:10 +02:00
parent 54861b58c6
commit 219e92629f
4 changed files with 2 additions and 4 deletions

View File

@ -92,5 +92,4 @@ class ImportTask(QtWidgets.QDialog):
self.completer.update_urls()
self.line_edit.setText("")
self.raise_()
self.activateWindow()
self.line_edit.setFocus()

View File

@ -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)

View File

@ -88,4 +88,3 @@ class TaskEdit(QtWidgets.QDialog):
def showEvent(self, _):
self.list.setStringList(self._task_data.tasks)
self.raise_()
self.activateWindow()

View File

@ -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()