Adds immediate migration results
This commit is contained in:
2395 files changed
+357322
-2524
No files matched your search
@@ -7,6 +7,7 @@
|
||||
*/
|
||||
|
||||
#include "main_handler_sqlite.h"
|
||||
#include <utility>
|
||||
|
||||
#include "db_reader.h"
|
||||
#include "static_publisher.h"
|
||||
@@ -277,16 +278,16 @@ void MainHandlerSqlite::replayTimeMaybeJumpedOverlays(qint64 curTime)
|
||||
// not really optimal
|
||||
QSet<int> oldOverlayIds;
|
||||
oldOverlayIds.reserve(m_currentVisibleOverlays.size());
|
||||
for (const FilterInformation &overlay : qAsConst(m_currentVisibleOverlays))
|
||||
for (const FilterInformation &overlay : std::as_const(m_currentVisibleOverlays))
|
||||
oldOverlayIds += overlay.overlayId;
|
||||
|
||||
m_curOverlayArrayIdx = -1;
|
||||
m_currentVisibleOverlays.clear();
|
||||
maybeAddNewOverlay(curTime);
|
||||
|
||||
for (const FilterInformation &overlay : qAsConst(m_currentVisibleOverlays))
|
||||
for (const FilterInformation &overlay : std::as_const(m_currentVisibleOverlays))
|
||||
oldOverlayIds -= overlay.overlayId;
|
||||
for (const int overlayId : qAsConst(oldOverlayIds))
|
||||
for (const int overlayId : std::as_const(oldOverlayIds))
|
||||
emit removeOverlay(overlayId);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user