mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-17 21:40:36 -04:00
fixed clearing of PGP passphrase after creation of default identity
This commit is contained in:
parent
6f7e656d6c
commit
345f24eb5f
5 changed files with 13 additions and 5 deletions
|
@ -397,7 +397,6 @@ feenableexcept(FE_INVALID | FE_DIVBYZERO);
|
|||
uint32_t token = 0;
|
||||
rsIdentity->createIdentity(token, params);
|
||||
}
|
||||
|
||||
// I'm using a signal to transfer the hashing info to the mainwindow, because Qt schedules signals properly to
|
||||
// avoid clashes between infos from threads.
|
||||
//
|
||||
|
@ -443,6 +442,11 @@ feenableexcept(FE_INVALID | FE_DIVBYZERO);
|
|||
WebuiPage::checkStartWebui();
|
||||
#endif // ENABLE_WEBUI
|
||||
|
||||
// This is done using a timer, because the passphrase request from notify is asynchrouneous and therefore clearing the
|
||||
// passphrase here makes it request for a passphrase when creating the default chat identity.
|
||||
|
||||
QTimer::singleShot(10000, Qt::CoarseTimer, notify, SLOT(resetCachedPassphrases())) ;
|
||||
|
||||
/* dive into the endless loop */
|
||||
int ti = rshare.exec();
|
||||
delete w ;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue