Fix role for close buttons

This commit is contained in:
Veronica Berglyd Olsen
2025-10-26 12:06:45 +01:00
parent 66f445c341
commit 5a4930f860
9 changed files with 17 additions and 16 deletions
+2 -2
View File
@@ -37,7 +37,7 @@ from novelwriter.common import readTextFile
from novelwriter.enum import nwStandardButton
from novelwriter.extensions.modified import NDialog
from novelwriter.extensions.switch import NSwitch
from novelwriter.types import QtAlignLeft, QtAlignRight, QtRoleApply, QtRoleReject
from novelwriter.types import QtAlignLeft, QtAlignRight, QtRoleApply, QtRoleDestruct
logger = logging.getLogger(__name__)
@@ -102,7 +102,7 @@ class GuiLipsum(NDialog):
self.btnBox = QDialogButtonBox(self)
self.btnBox.addButton(self.btnInsert, QtRoleApply)
self.btnBox.addButton(self.btnClose, QtRoleReject)
self.btnBox.addButton(self.btnClose, QtRoleDestruct)
# Assemble
self.outerBox = QVBoxLayout()