mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-29 01:16:20 -05:00
Fix GenCertDialog on Mac stay on.
Only call processEvent() if hasPendingEvents(). If no events are available, this function will wait until more are available and return after processing newly available events.
This commit is contained in:
parent
4033f35fa9
commit
3ebb8c6ce8
@ -532,7 +532,9 @@ void GenCertDialog::genPerson()
|
||||
setCursor(Qt::WaitCursor) ;
|
||||
|
||||
QCoreApplication::processEvents();
|
||||
while(QAbstractEventDispatcher::instance()->processEvents(QEventLoop::AllEvents)) ;
|
||||
QAbstractEventDispatcher* ed = QAbstractEventDispatcher::instance();
|
||||
if (ed->hasPendingEvents())
|
||||
while(ed->processEvents(QEventLoop::AllEvents));
|
||||
|
||||
std::string email_str = "" ;
|
||||
RsAccounts::GeneratePGPCertificate(
|
||||
|
Loading…
Reference in New Issue
Block a user