Commit 831128c1 authored by David Faure's avatar David Faure
Browse files

Fix filetype editor not saving the apps list on the second Apply

CCBUG: 376679
parent 4bc31a89
......@@ -540,12 +540,18 @@ bool MimeTypeData::matchesFilter(const QString& filter) const
void MimeTypeData::setAppServices(const QStringList &dsl)
{
if (!m_bFullInit) {
getMyServiceOffers(); // so that m_bFullInit is true
}
m_appServices = dsl;
m_appServicesModified = true;
}
void MimeTypeData::setEmbedServices(const QStringList &dsl)
{
if (!m_bFullInit) {
getMyServiceOffers(); // so that m_bFullInit is true
}
m_embedServices = dsl;
m_embedServicesModified = true;
}
......
......@@ -215,6 +215,9 @@ private Q_SLOTS:
// Check what's in mimeapps.list
checkAddedAssociationsContains(mimeTypeName, fakeApplication);
// Then we get the signal that kbuildsycoca changed
data.refresh();
// Now test removing (in the same test, since it's inter-dependent)
QVERIFY(appServices.removeAll(fakeApplication) > 0);
data.setAppServices(appServices);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment