[Backport release-10.x] fix accounts crash (#4546)
Some checks failed
CodeQL Code Scanning / CodeQL (push) Has been cancelled
Flatpak / Build (${{ matrix.arch }}) (aarch64, ubuntu-22.04-arm) (push) Has been cancelled
Flatpak / Build (${{ matrix.arch }}) (x86_64, ubuntu-22.04) (push) Has been cancelled
Nix / Build (${{ matrix.system }}) (macos-14, aarch64-darwin) (push) Has been cancelled
Nix / Build (${{ matrix.system }}) (macos-15-intel, x86_64-darwin) (push) Has been cancelled
Nix / Build (${{ matrix.system }}) (ubuntu-22.04, x86_64-linux) (push) Has been cancelled
Nix / Build (${{ matrix.system }}) (ubuntu-22.04-arm, aarch64-linux) (push) Has been cancelled

This commit is contained in:
timoreo 2025-12-21 05:34:09 +01:00 committed by GitHub
commit f1e382b035
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 1 additions and 2 deletions

View File

@ -669,7 +669,7 @@ void AccountList::beginActivity()
void AccountList::endActivity()
{
if (m_activityCount == 0) {
qWarning() << m_name << " - Activity count would become below zero";
qWarning() << "Activity count would become below zero";
return;
}
bool deactivating = m_activityCount == 1;

View File

@ -111,7 +111,6 @@ class AccountList : public QAbstractListModel {
void endActivity();
private:
const char* m_name;
uint32_t m_activityCount = 0;
signals:
void listChanged();