mirror of https://github.com/CGAL/cgal
Periodic_triangulation_3: Fix warning in demo
This commit is contained in:
parent
0fc710e95d
commit
543d424f58
|
|
@ -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(),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue