diff --git a/retroshare-gui/src/gui/GenCertDialog.cpp b/retroshare-gui/src/gui/GenCertDialog.cpp index bf7ac2c14..ab96e434f 100644 --- a/retroshare-gui/src/gui/GenCertDialog.cpp +++ b/retroshare-gui/src/gui/GenCertDialog.cpp @@ -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(