Merge pull request #2471 from pypeclub/bugfix/tvpaint_dialog_in_back

TVPaint: Create render layer dialog is in front
This commit is contained in:
Jakub Trllo 2022-01-04 11:14:32 +01:00 committed by GitHub
commit 2d1dd7ee04
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -197,6 +197,7 @@ class CreateRenderlayer(plugin.Creator):
)
def _ask_user_subset_override(self, instance):
from Qt import QtCore
from Qt.QtWidgets import QMessageBox
title = "Subset \"{}\" already exist".format(instance["subset"])
@ -206,6 +207,10 @@ class CreateRenderlayer(plugin.Creator):
).format(instance["subset"])
dialog = QMessageBox()
dialog.setWindowFlags(
dialog.windowFlags()
| QtCore.Qt.WindowStaysOnTopHint
)
dialog.setWindowTitle(title)
dialog.setText(text)
dialog.setStandardButtons(QMessageBox.Yes | QMessageBox.No)