Remove activateWindow calls, because they are not supported on Wayland, and the dialog seem to open fine without them.
This commit is contained in:
parent
54861b58c6
commit
219e92629f
@ -92,5 +92,4 @@ class ImportTask(QtWidgets.QDialog):
|
|||||||
self.completer.update_urls()
|
self.completer.update_urls()
|
||||||
self.line_edit.setText("")
|
self.line_edit.setText("")
|
||||||
self.raise_()
|
self.raise_()
|
||||||
self.activateWindow()
|
|
||||||
self.line_edit.setFocus()
|
self.line_edit.setFocus()
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
from typing import List, Optional
|
from typing import List, Optional
|
||||||
|
|
||||||
|
from loguru import logger
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from PySide6 import QtCore, QtGui, QtWidgets
|
from PySide6 import QtCore, QtGui, QtWidgets
|
||||||
except ImportError:
|
except ImportError:
|
||||||
@ -103,7 +105,6 @@ class ReportDialog(QtWidgets.QDialog):
|
|||||||
self.refresh_table()
|
self.refresh_table()
|
||||||
self.update_prev_next()
|
self.update_prev_next()
|
||||||
self.raise_()
|
self.raise_()
|
||||||
self.activateWindow()
|
|
||||||
|
|
||||||
def save(self):
|
def save(self):
|
||||||
self._report.save(self._report_data)
|
self._report.save(self._report_data)
|
||||||
|
@ -88,4 +88,3 @@ class TaskEdit(QtWidgets.QDialog):
|
|||||||
def showEvent(self, _):
|
def showEvent(self, _):
|
||||||
self.list.setStringList(self._task_data.tasks)
|
self.list.setStringList(self._task_data.tasks)
|
||||||
self.raise_()
|
self.raise_()
|
||||||
self.activateWindow()
|
|
||||||
|
@ -181,7 +181,6 @@ class WorklogDialog(QtWidgets.QDialog):
|
|||||||
self.update_all()
|
self.update_all()
|
||||||
self.upload_button.setEnabled(False)
|
self.upload_button.setEnabled(False)
|
||||||
self.raise_()
|
self.raise_()
|
||||||
self.activateWindow()
|
|
||||||
|
|
||||||
def update_all(self):
|
def update_all(self):
|
||||||
self.refresh_table()
|
self.refresh_table()
|
||||||
|
Loading…
Reference in New Issue
Block a user