Fixed regression for play/add all buttons

This commit is contained in:
emeric
2021-06-07 12:51:45 +02:00
parent 66de92fbb1
commit 1022ef0219
2 changed files with 7 additions and 1 deletions
+3
View File
@@ -22,6 +22,7 @@
#include <algorithm>
#include "database/Release.hpp"
#include "database/Session.hpp"
#include "database/User.hpp"
#include "database/TrackList.hpp"
#include "scrobbling/IScrobbling.hpp"
@@ -79,6 +80,8 @@ namespace UserInterface
std::vector<Database::IdType>
ReleaseCollector::getAll()
{
auto transaction {LmsApp->getDbSession().createSharedTransaction()};
bool moreResults;
const auto releases {get(std::nullopt, moreResults)};
+4 -1
View File
@@ -21,9 +21,10 @@
#include <algorithm>
#include "database/Session.hpp"
#include "database/Track.hpp"
#include "database/User.hpp"
#include "database/TrackList.hpp"
#include "database/User.hpp"
#include "scrobbling/IScrobbling.hpp"
#include "utils/Service.hpp"
#include "Filters.hpp"
@@ -79,6 +80,8 @@ namespace UserInterface
std::vector<Database::IdType>
TrackCollector::getAll()
{
auto transaction {LmsApp->getDbSession().createSharedTransaction()};
bool moreResults;
const auto releases {get(std::nullopt, moreResults)};