Permalink
Browse files

Put the new wait box code in a try/catch statement (just in case).

  • Loading branch information...
1 parent 454ed7c commit ef5422f34a1867522e832ca6e736337929538fda Ken Moore committed Oct 25, 2013
Showing with 7 additions and 1 deletion.
  1. +7 −1 src-qt4/life-preserver/lp-gui/LPMain.cpp
@@ -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();

0 comments on commit ef5422f

Please sign in to comment.