62 } |
62 } |
63 else { |
63 else { |
64 QMessageBox::critical( |
64 QMessageBox::critical( |
65 parent, |
65 parent, |
66 QObject::tr("Problem opening file"), |
66 QObject::tr("Problem opening file"), |
67 format(QObject::tr("Could not open %1: %2"), path, errorString)); |
67 QObject::tr("Could not open %1: %2").arg(quoted(path), errorString) |
|
68 ); |
68 } |
69 } |
69 return modelIdOpt; |
70 return modelIdOpt; |
70 } |
71 } |
71 |
72 |
72 static QString getOpenModelPath(QWidget* parent) |
73 static QString getOpenModelPath(QWidget* parent) |