Qt/FIFOPlayerWindow: Make message box modal

This commit is contained in:
spycrab 2019-03-03 16:26:23 +01:00
parent 1ba810901d
commit 326e2fb300

View File

@ -204,7 +204,12 @@ void FIFOPlayerWindow::SaveRecording()
bool result = file->Save(path.toStdString());
if (!result)
QMessageBox::critical(this, tr("Error"), tr("Failed to save FIFO log."));
{
QMessageBox msg(QMessageBox::Critical, tr("Error"), tr("Failed to save FIFO log."),
QMessageBox::Ok, this);
msg.setWindowModality(Qt::WindowModal);
msg.exec();
}
}
void FIFOPlayerWindow::StartRecording()