Fixed regression for play/add all buttons
This commit is contained in:
@@ -22,6 +22,7 @@
|
|||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
|
|
||||||
#include "database/Release.hpp"
|
#include "database/Release.hpp"
|
||||||
|
#include "database/Session.hpp"
|
||||||
#include "database/User.hpp"
|
#include "database/User.hpp"
|
||||||
#include "database/TrackList.hpp"
|
#include "database/TrackList.hpp"
|
||||||
#include "scrobbling/IScrobbling.hpp"
|
#include "scrobbling/IScrobbling.hpp"
|
||||||
@@ -79,6 +80,8 @@ namespace UserInterface
|
|||||||
std::vector<Database::IdType>
|
std::vector<Database::IdType>
|
||||||
ReleaseCollector::getAll()
|
ReleaseCollector::getAll()
|
||||||
{
|
{
|
||||||
|
auto transaction {LmsApp->getDbSession().createSharedTransaction()};
|
||||||
|
|
||||||
bool moreResults;
|
bool moreResults;
|
||||||
const auto releases {get(std::nullopt, moreResults)};
|
const auto releases {get(std::nullopt, moreResults)};
|
||||||
|
|
||||||
|
|||||||
@@ -21,9 +21,10 @@
|
|||||||
|
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
|
|
||||||
|
#include "database/Session.hpp"
|
||||||
#include "database/Track.hpp"
|
#include "database/Track.hpp"
|
||||||
#include "database/User.hpp"
|
|
||||||
#include "database/TrackList.hpp"
|
#include "database/TrackList.hpp"
|
||||||
|
#include "database/User.hpp"
|
||||||
#include "scrobbling/IScrobbling.hpp"
|
#include "scrobbling/IScrobbling.hpp"
|
||||||
#include "utils/Service.hpp"
|
#include "utils/Service.hpp"
|
||||||
#include "Filters.hpp"
|
#include "Filters.hpp"
|
||||||
@@ -79,6 +80,8 @@ namespace UserInterface
|
|||||||
std::vector<Database::IdType>
|
std::vector<Database::IdType>
|
||||||
TrackCollector::getAll()
|
TrackCollector::getAll()
|
||||||
{
|
{
|
||||||
|
auto transaction {LmsApp->getDbSession().createSharedTransaction()};
|
||||||
|
|
||||||
bool moreResults;
|
bool moreResults;
|
||||||
const auto releases {get(std::nullopt, moreResults)};
|
const auto releases {get(std::nullopt, moreResults)};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user