Fokusverlust bei Dialogauswahl gefixt
This commit is contained in:
@@ -324,6 +324,22 @@ class ProgressDialog:
|
|||||||
if self._dlg is not None:
|
if self._dlg is not None:
|
||||||
self._dlg.close()
|
self._dlg.close()
|
||||||
|
|
||||||
|
def raise_to_front(self) -> None:
|
||||||
|
"""Bringt den Fortschrittsdialog in den Vordergrund.
|
||||||
|
|
||||||
|
Wird aufgerufen, nachdem ein modaler Subdialog (z. B. Auswahlbox)
|
||||||
|
geschlossen wurde und der Fortschrittsdialog wieder sichtbar sein soll.
|
||||||
|
"""
|
||||||
|
if QT_VERSION == 0:
|
||||||
|
return
|
||||||
|
if self._dlg is not None:
|
||||||
|
try:
|
||||||
|
self._dlg.raise_()
|
||||||
|
self._dlg.activateWindow()
|
||||||
|
QCoreApplication.processEvents()
|
||||||
|
except Exception:
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
def create_progress_dialog(total: int, title: str = "Fortschritt", label: str = "Verarbeite...") -> ProgressDialog:
|
def create_progress_dialog(total: int, title: str = "Fortschritt", label: str = "Verarbeite...") -> ProgressDialog:
|
||||||
return ProgressDialog(total, title, label)
|
return ProgressDialog(total, title, label)
|
||||||
|
|||||||
Reference in New Issue
Block a user