File tree Expand file tree Collapse file tree 2 files changed +5
-8
lines changed
Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Original file line number Diff line number Diff line change 11cmake_minimum_required (VERSION 3.16)
22
3- project (Earie VERSION 1.0.0 LANGUAGES CXX)
3+ project (Earie VERSION 1.0.1 LANGUAGES CXX)
44
55set (TARGET_NAME Earie)
66
Original file line number Diff line number Diff line change @@ -405,14 +405,11 @@ QVector<AudioBackend::DeviceSnapshot> AudioBackend::devicesSnapshotAll() const
405405QVector<AudioBackend::ProcessSnapshot> AudioBackend::knownProcessesSnapshot () const
406406{
407407 QHash<QString, QString> uniq;
408- for (auto it = m_sessionByKeyByDevice.begin (); it != m_sessionByKeyByDevice.end (); ++it) {
409- for (auto *s : it.value ()) {
410- if (!s)
411- continue ;
412- const QString exe = s->exePath ();
413- if (exe.isEmpty ())
408+ for (const auto &ds : m_lastSnapshot) {
409+ for (const auto &ss : ds.sessions ) {
410+ if (ss.exePath .isEmpty ())
414411 continue ;
415- uniq.insert (exe, s-> displayName () );
412+ uniq.insert (ss. exePath , ss. displayName );
416413 }
417414 }
418415 QVector<ProcessSnapshot> out;
You can’t perform that action at this time.
0 commit comments