Improve message box

This commit is contained in:
Laurent Trinques
2024-10-13 09:55:24 +02:00
parent e02ad585a9
commit fc0dcb6ab0

View File

@@ -55,7 +55,7 @@ QByteArray dxfToElmt(const QString &file_path)
// inform the user about log-output via QMessageBox
QMessageBox msgBox;
msgBox.setIcon(QMessageBox::Critical);
msgBox.setText(QObject::tr ("Dxf2elmt: \nError: Make sure the file is a valid .dxf file"));
msgBox.setText(QObject::tr ("Dxf2elmt: \nError: Make sure the file %1 is a valid .dxf file").arg(file_path));
msgBox.setInformativeText (QObject::tr("See details here:"));
msgBox.setDetailedText(error_output);
msgBox.exec();