30 lines
1.0 KiB
Diff
30 lines
1.0 KiB
Diff
From 331105fa44a0b03c7f7f5a543b92aab3ec659385 Mon Sep 17 00:00:00 2001
|
|
From: ivan tkachenko <me@ratijas.tk>
|
|
Date: Wed, 15 Mar 2023 21:43:15 +0600
|
|
Subject: [PATCH] FlatpakPermission: Add back no-args default constructor
|
|
|
|
Older toolchain such as Kubuntu requires default constructor to use this
|
|
class with QVector. Do not use this constructor manually.
|
|
|
|
BUG: 467399
|
|
(cherry picked from commit 7e644d8f39e38f5713938424fef6064261270023)
|
|
---
|
|
flatpakpermission.h | 4 ++++
|
|
1 file changed, 4 insertions(+)
|
|
|
|
diff --git a/flatpakpermission.h b/flatpakpermission.h
|
|
index 8f24354..7b9a5c7 100644
|
|
--- a/flatpakpermission.h
|
|
+++ b/flatpakpermission.h
|
|
@@ -99,6 +99,10 @@ class FlatpakPermission
|
|
Advanced
|
|
};
|
|
|
|
+ // Default constructor is required for meta-type registration.
|
|
+ /** Default constructor. Creates an invalid entry. */
|
|
+ FlatpakPermission() = default;
|
|
+
|
|
/**
|
|
* Create a Dummy entry for the Advanced and user-editable sections, just so
|
|
* that ListView shows a section header even if there are no permission row
|