diff options
-rw-r--r-- | src/modules/database/database.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/database/database.cpp b/src/modules/database/database.cpp index ae5e497a8d..dc55487878 100644 --- a/src/modules/database/database.cpp +++ b/src/modules/database/database.cpp @@ -391,7 +391,7 @@ int makeDatabase(TCHAR *profile, DATABASELINK * link, HWND hwndDlg) // enumerate all plugins that had valid DatabasePluginInfo()
int tryOpenDatabase(const TCHAR* tszProfile)
{
- for (int i=0; i < arDbPlugins.getCount(); i++) {
+ for (int i=arDbPlugins.getCount()-1; i >= 0; i--) {
DATABASELINK* p = arDbPlugins[i];
// liked the profile?
|