Merge remote-tracking branch 'cgal/6.0.x-branch' into 'cgal/6.1.x-branch'

This commit is contained in:
Sébastien Loriot 2025-12-03 11:54:12 +01:00
commit 39dd7c5028
1 changed files with 6 additions and 1 deletions

View File

@ -138,7 +138,12 @@ public Q_SLOTS:
private: private:
void showFileBox(QString title, QString fileName) { void showFileBox(QString title, QString fileName) {
QFile textFile(fileName); QFile textFile(fileName);
textFile.open(QIODevice::ReadOnly); bool b = textFile.open(QIODevice::ReadOnly);
if(!b){
QMessageBox::critical(this, tr("Error"),
tr("Could not open file %1.").arg(fileName));
return;
}
QMessageBox mb(QMessageBox::NoIcon, QMessageBox mb(QMessageBox::NoIcon,
title, title,
QTextStream(&textFile).readAll(), QTextStream(&textFile).readAll(),