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
@@ -52,7 +52,7 @@ from novelwriter.extensions.switch import NSwitch
from novelwriter.extensions.switchbox import NSwitchBox
from novelwriter.types import (
QtAlignCenter, QtAlignLeft, QtHeaderFixed, QtHeaderStretch, QtRoleAccept,
QtRoleApply, QtRoleReject, QtUserRole
QtRoleApply, QtRoleDestruct, QtRoleReject, QtUserRole
)
if TYPE_CHECKING:
@@ -132,7 +132,7 @@ class GuiBuildSettings(NToolDialog):
self.btnBox = QDialogButtonBox(self)
self.btnBox.addButton(self.btnApply, QtRoleApply)
self.btnBox.addButton(self.btnSave, QtRoleAccept)
self.btnBox.addButton(self.btnClose, QtRoleReject)
self.btnBox.addButton(self.btnClose, QtRoleDestruct)
self.btnBox.clicked.connect(self._dialogButtonClicked)
# Assemble