- made sure that new message boxes are always centered on the app UI by setting correctly the parent

This commit is contained in:
Marius Stanciu
2022-01-14 12:43:14 +02:00
committed by Marius
parent 200d244b9b
commit b615edd631
6 changed files with 25 additions and 21 deletions

View File

@@ -338,7 +338,7 @@ class AppTextEditor(QtWidgets.QWidget):
r = self.code_editor.find(str(text_to_be_found), flags)
if r is False:
msgbox = FCMessageBox()
msgbox = FCMessageBox(parent=self.app.ui)
title = _("End of document.")
txt = '%s' % _("Start from beginning?")
msgbox.setWindowTitle(_('Find')) # taskbar still shows it