Skip to content

Commit bd3ef9b

Browse files
JWWTSLdeepin-bot[bot]
authored andcommitted
fix: Resolved user confirmation dialog hierarchy anomaly
log: Fixed integration and rollback handling pms: bug-352609
1 parent af52d4c commit bd3ef9b

1 file changed

Lines changed: 0 additions & 27 deletions

File tree

qt6/src/qml/DialogWindow.qml

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,6 @@ Window {
3333
property real leftPadding: DS.Style.dialogWindow.contentHMargin
3434
property real rightPadding: DS.Style.dialogWindow.contentHMargin
3535

36-
property var transientParentWindow: null
37-
transientParent: transientParentWindow
38-
3936
Item {
4037
id: content
4138
palette: control.active ? D.DTK.palette : D.DTK.inactivePalette
@@ -63,30 +60,6 @@ Window {
6360
}
6461
}
6562

66-
function updateTransientParent() {
67-
if (control.modality !== Qt.WindowModal)
68-
return
69-
if (!transientParentWindow || transientParentWindow === control) {
70-
var candidate = Qt.application.activeWindow
71-
if (candidate && candidate !== control)
72-
transientParentWindow = candidate
73-
}
74-
}
75-
76-
Component.onCompleted: {
77-
updateTransientParent()
78-
}
79-
80-
onVisibleChanged: {
81-
if (!control.visible)
82-
return
83-
updateTransientParent()
84-
Qt.callLater(function () {
85-
control.raise()
86-
control.requestActivate()
87-
})
88-
}
89-
9063
onClosing: function(close) {
9164
// close can't reset sub control's hovered state. pms Bug:168405
9265
// if we need to close, we can add closing handler to set `close.acceped = true`

0 commit comments

Comments
 (0)