mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
set creator window as parent of pop up window
This commit is contained in:
parent
162370e1ad
commit
6af4412591
1 changed files with 3 additions and 2 deletions
|
|
@ -29,7 +29,8 @@ class CreateImage(create.LegacyCreator):
|
|||
if len(selection) > 1:
|
||||
# Ask user whether to create one image or image per selected
|
||||
# item.
|
||||
msg_box = QtWidgets.QMessageBox()
|
||||
active_window = QtWidgets.QApplication.activeWindow()
|
||||
msg_box = QtWidgets.QMessageBox(parent=active_window)
|
||||
msg_box.setIcon(QtWidgets.QMessageBox.Warning)
|
||||
msg_box.setText(
|
||||
"Multiple layers selected."
|
||||
|
|
@ -102,7 +103,7 @@ class CreateImage(create.LegacyCreator):
|
|||
if group.long_name:
|
||||
for directory in group.long_name[::-1]:
|
||||
name = directory.replace(stub.PUBLISH_ICON, '').\
|
||||
replace(stub.LOADED_ICON, '')
|
||||
replace(stub.LOADED_ICON, '')
|
||||
long_names.append(name)
|
||||
|
||||
self.data.update({"subset": subset_name})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue