Paste P511

Masterwork From Distant Lands
ActivePublic

Authored by apol on Dec 31 2019, 3:33 AM.
diff --git a/discover/qml/SourcesPage.qml b/discover/qml/SourcesPage.qml
index 5598e868..36cf126f 100644
--- a/discover/qml/SourcesPage.qml
+++ b/discover/qml/SourcesPage.qml
@@ -205,8 +205,6 @@ DiscoverPage {
RowLayout {
CheckBox {
- id: enabledBox
-
readonly property variant idx: sourcesView.model.index(index, 0)
readonly property variant modelChecked: sourcesView.model.data(idx, Qt.CheckStateRole)
checked: modelChecked !== Qt.Unchecked
diff --git a/libdiscover/backends/FlatpakBackend/FlatpakBackend.cpp b/libdiscover/backends/FlatpakBackend/FlatpakBackend.cpp
index e331046d..1a4bbd18 100644
--- a/libdiscover/backends/FlatpakBackend/FlatpakBackend.cpp
+++ b/libdiscover/backends/FlatpakBackend/FlatpakBackend.cpp
@@ -44,7 +44,6 @@
#include <KConfigGroup>
#include <KSharedConfig>
-#include <QAction>
#include <QtConcurrentRun>
#include <QDebug>
#include <QDir>
diff --git a/libdiscover/backends/FlatpakBackend/FlatpakSourcesBackend.cpp b/libdiscover/backends/FlatpakBackend/FlatpakSourcesBackend.cpp
index ea96c2c5..e03bc064 100644
--- a/libdiscover/backends/FlatpakBackend/FlatpakSourcesBackend.cpp
+++ b/libdiscover/backends/FlatpakBackend/FlatpakSourcesBackend.cpp
@@ -53,6 +53,7 @@ FlatpakSourcesBackend::FlatpakSourcesBackend(const QVector<FlatpakInstallation *
, m_flathubAction(new QAction(i18n("Add Flathub"), this))
, m_noSourcesItem(new QStandardItem(QStringLiteral("-")))
{
+ connect(m_flathubAction, &QObject::destroyed, this, [] (QObject* o) { qDebug() << "destroying action" << o; });
m_flathubAction->setToolTip(QStringLiteral("flathub"));
connect(m_flathubAction, &QAction::triggered, this, [this](){
addSource(QStringLiteral("https://flathub.org/repo/flathub.flatpakrepo"));
apol edited the content of this paste. (Show Details)Dec 31 2019, 3:33 AM
apol changed the title of this paste from untitled to Masterwork From Distant Lands.