@@ -421,6 +421,7 @@ private Q_SLOTS:
421421
422422 void testSettings() {
423423 GSettings *settings = launcherModel->m_settings;
424+ QSignalSpy spy(launcherModel, SIGNAL(hintChanged()));
424425
425426 // Nothing pinned at startup
426427 QCOMPARE(settings->storedApplications().count(), 0);
@@ -428,6 +429,7 @@ private Q_SLOTS:
428429 // pin both apps
429430 launcherModel->pin("abs-icon");
430431 launcherModel->pin("no-icon");
432+ QCOMPARE(spy.count(), 0);
431433
432434 // Now settings should have 2 apps
433435 QCOMPARE(settings->storedApplications().count(), 2);
@@ -440,17 +442,19 @@ private Q_SLOTS:
440442 QCOMPARE(settings->storedApplications().count(), 2);
441443
442444 // Now remove 1 app through the backend, make sure one is still there
443− settings->setStoredApplications(QStringList() << "abs-icon");
445+ settings->simulateDconfChange(QStringList() << "abs-icon");
444446 QCOMPARE(settings->storedApplications().count(), 1);
447+ QCOMPARE(spy.count(), 1);
445448
446449 // Check if it disappeared from the frontend too
447450 QCOMPARE(launcherModel->rowCount(), 1);
448451
449452 // Add them back but in reverse order
450− settings->setStoredApplications(QStringList() << "no-icon" << "abs-icon");
453+ settings->simulateDconfChange(QStringList() << "no-icon" << "abs-icon");
451454 QCOMPARE(launcherModel->rowCount(), 2);
452455 QCOMPARE(launcherModel->get(0)->appId(), QString("no-icon"));
453456 QCOMPARE(launcherModel->get(1)->appId(), QString("abs-icon"));
457+ QCOMPARE(spy.count(), 2);
454458 }
455459};
456460