Fix initialization order

Reviewers: #plasma, #frameworks, apol

Reviewed By: apol

Subscribers: kde-frameworks-devel

Tags: #frameworks

Differential Revision: https://phabricator.kde.org/D27627
This commit is contained in:
Daniel Vrátil 2020-02-25 14:32:00 +01:00
parent 4b93b71a49
commit 1e11099c16
No known key found for this signature in database
GPG Key ID: 4D69557AECB13683
2 changed files with 4 additions and 4 deletions

View File

@ -52,10 +52,10 @@ AppletQuickItemPrivate::AppletQuickItemPrivate(Plasma::Applet *a, AppletQuickIte
: q(item), : q(item),
switchWidth(-1), switchWidth(-1),
switchHeight(-1), switchHeight(-1),
initComplete(false),
applet(a), applet(a),
expanded(false), expanded(false),
activationTogglesExpanded(false) activationTogglesExpanded(false),
initComplete(false)
{ {
if (s_preloadPolicy == Uninitialized) { if (s_preloadPolicy == Uninitialized) {
//default as Adaptive //default as Adaptive

View File

@ -35,8 +35,8 @@
DropMenu::DropMenu(KIO::DropJob *dropJob, const QPoint &dropPoint, ContainmentInterface *parent) DropMenu::DropMenu(KIO::DropJob *dropJob, const QPoint &dropPoint, ContainmentInterface *parent)
: QObject(parent), : QObject(parent),
m_dropJob(dropJob), m_dropPoint(dropPoint),
m_dropPoint(dropPoint) m_dropJob(dropJob)
{ {
if (!dropJob) { if (!dropJob) {
m_menu = new QMenu(i18n("Content dropped")); m_menu = new QMenu(i18n("Content dropped"));