Changeset View
Changeset View
Standalone View
Standalone View
src/dialogs/profilesdialog.cpp
Show First 20 Lines • Show All 214 Lines • ▼ Show 20 Line(s) | 207 | { | |||
---|---|---|---|---|---|
215 | updateCBProfiles(); | 215 | updateCBProfiles(); | ||
216 | } | 216 | } | ||
217 | 217 | | |||
218 | QStringList ProfilesDialog::detectFWPlugins() | 218 | QStringList ProfilesDialog::detectFWPlugins() | ||
219 | { | 219 | { | ||
220 | QStringList firmwares; | 220 | QStringList firmwares; | ||
221 | QStringList paths = AtCoreDirectories::pluginDir; | 221 | QStringList paths = AtCoreDirectories::pluginDir; | ||
222 | //Add our runtime paths | 222 | //Add our runtime paths | ||
223 | paths.prepend(qApp->applicationDirPath() + QStringLiteral("/../Plugins/AtCore")); | 223 | QString path = qApp->applicationDirPath(); | ||
224 | paths.prepend(qApp->applicationDirPath() + QStringLiteral("/AtCore")); | 224 | paths.prepend(path + QStringLiteral("/../Plugins/AtCore")); | ||
225 | paths.prepend(qApp->applicationDirPath() + QStringLiteral("/plugins")); | 225 | paths.prepend(path + QStringLiteral("/AtCore")); | ||
226 | paths.prepend(path + QStringLiteral("/plugins")); | ||||
patrickelectric: get with reference | |||||
226 | for (const QString &path : paths) { | 227 | for (const QString &path : paths) { | ||
227 | firmwares = firmwaresInPath(path); | 228 | firmwares = firmwaresInPath(path); | ||
228 | if (!firmwares.isEmpty()) { | 229 | if (!firmwares.isEmpty()) { | ||
229 | //use path where plugins were detected. | 230 | //use path where plugins were detected. | ||
230 | break; | 231 | break; | ||
231 | } | 232 | } | ||
232 | } | 233 | } | ||
233 | return firmwares; | 234 | return firmwares; | ||
▲ Show 20 Lines • Show All 48 Lines • Show Last 20 Lines |
get with reference