Browser Integration tests

This commit is contained in:
varjolintu 2018-12-10 14:20:58 +02:00 committed by Jonathan White
parent 6d5c6c7d17
commit 5341a8215c
6 changed files with 409 additions and 3 deletions

View file

@ -172,9 +172,9 @@ QJsonArray BrowserService::getChildrenFromGroup(Group* group)
return groupList;
}
QJsonObject BrowserService::getDatabaseGroups()
QJsonObject BrowserService::getDatabaseGroups(const QSharedPointer<Database>& selectedDb)
{
auto db = getDatabase();
auto db = selectedDb ? selectedDb : getDatabase();
if (!db) {
return {};
}