Merge pull request #275 from PhenomRetroShare/Fix_GenCertDialogOnMac

Fix GenCertDialog on Mac stay on.
This commit is contained in:
Cyril Soler 2016-02-12 23:08:59 -05:00
commit 3e4c1546c4

View File

@ -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(