Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F85828749
D49.1793383398.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
Unknown
Size
971 B
Referenced Files
None
Subscribers
None
D49.1793383398.diff
View Options
diff --git a/src/contents/ui/SelfDestroyableOverlaySheet.qml b/src/contents/ui/SelfDestroyableOverlaySheet.qml
--- a/src/contents/ui/SelfDestroyableOverlaySheet.qml
+++ b/src/contents/ui/SelfDestroyableOverlaySheet.qml
@@ -11,11 +11,25 @@
import org.kde.kirigami 2.13 as Kirigami
Kirigami.OverlaySheet {
+ id: selfDestroyableOverlaySheet
property var shouldSelfDestroy: false
- onSheetOpenChanged: {
- if (!sheetOpen && shouldSelfDestroy) {
- destroy();
+ property var selfDestroyConn: Connections {
+ target: selfDestroyableOverlaySheet
+
+ // for KF5
+ function onSheetOpenChanged() {
+ if (!selfDestroyableOverlaySheet.sheetOpen
+ && selfDestroyableOverlaySheet.shouldSelfDestroy) {
+ selfDestroyableOverlaySheet.destroy();
+ }
+ }
+
+ // for KF6
+ function onClosed() {
+ if (selfDestroyableOverlaySheet.shouldSelfDestroy) {
+ selfDestroyableOverlaySheet.destroy();
+ }
}
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Oct 30, 11:03 AM (18 h, 21 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1800639
Default Alt Text
D49.1793383398.diff (971 B)
Attached To
Mode
D49: Make SelfDestroyableOverlaySheet work with KF6
Attached
Detach File
Event Timeline