mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-28 16:17:28 -04:00
Fix Ask Password in new window if wrong in StartDialog.
And Fix LineEditClear to show placeholder test even if it has focus (Like Qt5).
This commit is contained in:
parent
b387f15226
commit
5dc25e37f7
7 changed files with 71 additions and 29 deletions
|
@ -267,6 +267,12 @@ bool p3Notify::clearPgpPassphrase()
|
|||
return true ;
|
||||
}
|
||||
|
||||
bool p3Notify::setDisableAskPassword(const bool bValue)
|
||||
{
|
||||
_disableAskPassword = bValue;
|
||||
return true;
|
||||
}
|
||||
|
||||
bool p3Notify::askForPassword (const std::string& title , const std::string& key_details , bool prev_is_bad , std::string& password,bool *cancelled)
|
||||
{
|
||||
if(!prev_is_bad && !cached_pgp_passphrase.empty())
|
||||
|
@ -278,8 +284,9 @@ bool p3Notify::askForPassword (const std::string& title , c
|
|||
}
|
||||
|
||||
FOR_ALL_NOTIFY_CLIENTS
|
||||
if( (*it)->askForPassword(title,key_details,prev_is_bad,password,*cancelled))
|
||||
return true ;
|
||||
if (!_disableAskPassword)
|
||||
if( (*it)->askForPassword(title,key_details,prev_is_bad,password,*cancelled) )
|
||||
return true;
|
||||
|
||||
return false ;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue