             filter.checked = checkbox.checked;
     }
     ignoreRefreshBrowserResults = false;
-    RefreshBrowserResults();
+    RebuildResourceDatabase();
 }
 
 void HandleResourceDirFilterToggled(StringHash eventType, VariantMap& eventData)

        activeResourceDirFilters.Push(resourceDir);

    if (ignoreRefreshBrowserResults == false)
        RefreshBrowserResults();
}

void HandleRescanResourceBrowserClick(StringHash eventType, VariantMap& eventData)

    for(uint x=0; x < dir.files.length; x++)
    {
        BrowserFile@ file = dir.files[x];

        if (activeResourceTypeFilters.Find(file.resourceType) == -1)
            files.Push(file);
