You also forgot the brackets:

Qt Code:
  1. void tester::uipEulpClearlogs()
  2. {
  3. if (uip.ECULPLog->isEmpty())
  4. {
  5. QMessageBox::question(this, tr("BLANK LOG"), tr("It's already cleared dumbo"),QMessageBox::Yes);
  6. break;
  7. }
  8. else {
  9. int answer = QMessageBox::question(this, tr("ECULP Log"), tr("Are you sure you want to clear the current ECULP log?"), QMessageBox::Yes, QMessageBox::Cancel);
  10. if (answer == QMessageBox::Yes)
  11. uip.ECULPLog->clear();
  12. }
  13. }
To copy to clipboard, switch view to plain text mode