From b8b560d06a32f502e0ac97fcb316b637eee5d92f Mon Sep 17 00:00:00 2001 From: reionwong Date: Tue, 31 Aug 2021 00:17:39 +0800 Subject: [PATCH] Fix filepropertiesdialog error --- dialogs/filepropertiesdialog.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dialogs/filepropertiesdialog.cpp b/dialogs/filepropertiesdialog.cpp index 98f6f6c..78648d1 100644 --- a/dialogs/filepropertiesdialog.cpp +++ b/dialogs/filepropertiesdialog.cpp @@ -56,8 +56,9 @@ FilePropertiesDialog::FilePropertiesDialog(const KFileItemList &items, QQuickVie FilePropertiesDialog::FilePropertiesDialog(const QUrl &url, QQuickView *parent) : QQuickView(parent) - , m_items { KFileItem(url) } { + m_items.append(KFileItem(url)); + init(); }