mirror of
https://git.jami.net/savoirfairelinux/jami-client-qt.git
synced 2025-08-03 22:35:45 +02:00
lrcinstance: avoid to call getAccountList continuously
Change-Id: Ia8ecf2aa61c3e1725949ec1e2e4cb9aae33c0982 Gitlab: #46
This commit is contained in:
parent
dc25dfa904
commit
ba8bf74561
1 changed files with 4 additions and 3 deletions
|
@ -259,9 +259,10 @@ public:
|
||||||
static const QString &
|
static const QString &
|
||||||
getCurrAccId()
|
getCurrAccId()
|
||||||
{
|
{
|
||||||
auto accountList = accountModel().getAccountList();
|
if (instance().selectedAccountId_.isEmpty()) {
|
||||||
if (instance().selectedAccountId_.isEmpty() && accountList.size()) {
|
auto accountList = accountModel().getAccountList();
|
||||||
instance().selectedAccountId_ = accountList.at(0);
|
if (accountList.size())
|
||||||
|
instance().selectedAccountId_ = accountList.at(0);
|
||||||
}
|
}
|
||||||
return instance().selectedAccountId_;
|
return instance().selectedAccountId_;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue