Don't use QMessageBox::setInformativeText()
[pulseview.git] / pv / views / trace / decodetrace.cpp
index 9c7196bfb04f24e1c3322172ce023d12f12f4b36..65a2bf6c6a72f3e773b837e1941565bd7378012a 100644 (file)
@@ -1036,8 +1036,7 @@ void DecodeTrace::export_annotations(vector<Annotation> *annotations) const
        }
 
        QMessageBox msg(owner_->view());
-       msg.setText(tr("Error"));
-       msg.setInformativeText(tr("File %1 could not be written to.").arg(file_name));
+       msg.setText(tr("Error") + "\n\n" + tr("File %1 could not be written to.").arg(file_name));
        msg.setStandardButtons(QMessageBox::Ok);
        msg.setIcon(QMessageBox::Warning);
        msg.exec();