Replace exec_ with exec
This commit is contained in:
@@ -129,7 +129,7 @@ class GuiLipsum(QDialog):
|
||||
def getLipsum(cls, parent: QWidget) -> str:
|
||||
"""Pop the dialog and return the lipsum text."""
|
||||
cls = GuiLipsum(parent)
|
||||
cls.exec_()
|
||||
cls.exec()
|
||||
text = cls.lipsumText
|
||||
cls.deleteLater()
|
||||
return text
|
||||
|
||||
@@ -385,7 +385,7 @@ class GuiManuscript(QDialog):
|
||||
build = self._getSelectedBuild()
|
||||
if isinstance(build, BuildSettings):
|
||||
dlgBuild = GuiManuscriptBuild(self, build)
|
||||
dlgBuild.exec_()
|
||||
dlgBuild.exec()
|
||||
|
||||
# After the build is done, save build settings changes
|
||||
if build.changed:
|
||||
@@ -398,7 +398,7 @@ class GuiManuscript(QDialog):
|
||||
"""Open the print preview dialog."""
|
||||
preview = QPrintPreviewDialog(self)
|
||||
preview.paintRequested.connect(self.docPreview.printPreview)
|
||||
preview.exec_()
|
||||
preview.exec()
|
||||
return
|
||||
|
||||
##
|
||||
|
||||
@@ -377,7 +377,7 @@ class _OpenProjectPage(QWidget):
|
||||
action.triggered.connect(self.openSelectedItem)
|
||||
action = ctxMenu.addAction(self.tr("Remove Project"))
|
||||
action.triggered.connect(self._deleteSelectedItem)
|
||||
ctxMenu.exec_(self.mapToGlobal(pos))
|
||||
ctxMenu.exec(self.mapToGlobal(pos))
|
||||
ctxMenu.deleteLater()
|
||||
return
|
||||
|
||||
|
||||
Reference in New Issue
Block a user