Changeset View
Changeset View
Standalone View
Standalone View
wallpapers/image/slidemodel.cpp
Show All 20 Lines | |||||
21 | } | 21 | } | ||
22 | 22 | | |||
23 | void SlideModel::backgroundsFound(const QStringList& paths, const QString& token) | 23 | void SlideModel::backgroundsFound(const QStringList& paths, const QString& token) | ||
24 | { | 24 | { | ||
25 | if (token != m_findToken) { | 25 | if (token != m_findToken) { | ||
26 | return; | 26 | return; | ||
27 | } | 27 | } | ||
28 | processPaths(paths); | 28 | processPaths(paths); | ||
29 | emit done(); | ||||
29 | } | 30 | } | ||
30 | 31 | | |||
31 | 32 | | |||
32 | void SlideModel::removeDir(const QString &path) | 33 | void SlideModel::removeDir(const QString &path) | ||
33 | { | 34 | { | ||
34 | BackgroundFinder *finder = new BackgroundFinder(m_wallpaper.data(), QStringList{path}); | 35 | BackgroundFinder *finder = new BackgroundFinder(m_wallpaper.data(), QStringList{path}); | ||
35 | connect(finder, &BackgroundFinder::backgroundsFound, this, &SlideModel::removeBackgrounds); | 36 | connect(finder, &BackgroundFinder::backgroundsFound, this, &SlideModel::removeBackgrounds); | ||
36 | finder->start(); | 37 | finder->start(); | ||
Show All 23 Lines |