Skip to content
This repository has been archived by the owner on Dec 4, 2020. It is now read-only.

Commit

Permalink
Put the new wait box code in a try/catch statement (just in case).
Browse files Browse the repository at this point in the history
  • Loading branch information
Ken Moore committed Oct 25, 2013
1 parent 454ed7c commit ef5422f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src-qt4/life-preserver/lp-gui/LPMain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,13 @@ void LPMain::showWaitBox(QString message){
waitBox->setWindowModality(Qt::WindowModal);
}else{
qDebug() << "Update Wait Box:" << message;
waitBox->setText(message);
try{
waitBox->setText(message);
}catch(...){
waitBox = 0; //reset flag if necessary
showWaitBox(message);
return;
}
}
if(!waitBox->isVisible()){ waitBox->show(); waitBox->raise(); }
QCoreApplication::processEvents();
Expand Down

0 comments on commit ef5422f

Please sign in to comment.