diff options
Diffstat (limited to 'Plugins/DbAndroid/adbmanager.cpp')
| -rw-r--r-- | Plugins/DbAndroid/adbmanager.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Plugins/DbAndroid/adbmanager.cpp b/Plugins/DbAndroid/adbmanager.cpp index bbcf8fc..e182c72 100644 --- a/Plugins/DbAndroid/adbmanager.cpp +++ b/Plugins/DbAndroid/adbmanager.cpp @@ -148,7 +148,13 @@ QString AdbManager::findAdb() return "adb.exe"; static_qstring(winAdbPath, "/../Android/sdk/platform-tools/adb.exe"); - for (const QString& path : QStandardPaths::standardLocations(QStandardPaths::AppLocalDataLocation)) + for (const QString& path : QStandardPaths::standardLocations( +#if QT_VERSION >= 0x050400 + QStandardPaths::AppLocalDataLocation +#else + QStandardPaths::GenericDataLocation +#endif + )) { fullPath = QDir::cleanPath(path + winAdbPath); if (testAdb(fullPath, true)) |
