mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-23 10:22:48 +00:00
kutils: do not attempt to open already open KPasswdStore
purely for optimization purpose (e.g. not logging debug messages, the check is cheap) Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
7f0d7fa885
commit
37cfd2fd46
1 changed files with 6 additions and 0 deletions
|
@ -107,6 +107,12 @@ bool KPasswdStoreImpl::openStore(const qlonglong windowid)
|
|||
return false;
|
||||
}
|
||||
|
||||
if (isOpen()) {
|
||||
kDebug() << "store already open" << m_storeid;
|
||||
m_passwdtimer.start();
|
||||
return true;
|
||||
}
|
||||
|
||||
bool cancel = false;
|
||||
quint8 retry = m_retries;
|
||||
while (retry > 0 && !ensurePasswd(windowid, retry < m_retries, &cancel)) {
|
||||
|
|
Loading…
Add table
Reference in a new issue