Changeset View
Changeset View
Standalone View
Standalone View
src/main.cpp
Show First 20 Lines • Show All 87 Lines • ▼ Show 20 Line(s) | 87 | if (!resolvedImagePath.isEmpty()) { | |||
---|---|---|---|---|---|
88 | QString tempImagePath = resolvedImagePath.toString(); | 88 | QString tempImagePath = resolvedImagePath.toString(); | ||
89 | directoryUrls << tempImagePath; | 89 | directoryUrls << tempImagePath; | ||
90 | 90 | | |||
91 | if (resolvedImagePath.toString().startsWith(QUrl::fromLocalFile(locations.first()).toString())) { | 91 | if (resolvedImagePath.toString().startsWith(QUrl::fromLocalFile(locations.first()).toString())) { | ||
92 | while (tempImagePath != QUrl::fromLocalFile(locations.first()).toString()) { | 92 | while (tempImagePath != QUrl::fromLocalFile(locations.first()).toString()) { | ||
93 | tempImagePath = tempImagePath.left( tempImagePath.lastIndexOf('/')); | 93 | tempImagePath = tempImagePath.left( tempImagePath.lastIndexOf('/')); | ||
94 | directoryUrls.prepend(tempImagePath); | 94 | directoryUrls.prepend(tempImagePath); | ||
95 | } | 95 | } | ||
96 | } else { | ||||
97 | directoryUrls.prepend(tempImagePath.left( tempImagePath.lastIndexOf('/'))); | ||||
96 | } | 98 | } | ||
97 | } | 99 | } | ||
98 | 100 | | |||
99 | FileSystemTracker tracker; | 101 | FileSystemTracker tracker; | ||
100 | tracker.setFolder(locations.first()); | 102 | tracker.setFolder(locations.first()); | ||
101 | tracker.moveToThread(&trackerThread); | 103 | tracker.moveToThread(&trackerThread); | ||
102 | 104 | | |||
103 | Koko::Processor processor; | 105 | Koko::Processor processor; | ||
▲ Show 20 Lines • Show All 43 Lines • Show Last 20 Lines |