ossp-pkg/as/as-gui/as_assist.cpp 1.90 -> 1.91
--- as_assist.cpp 2003/01/30 16:51:45 1.90
+++ as_assist.cpp 2003/01/30 22:02:41 1.91
@@ -1018,15 +1018,20 @@
if (nNumargs > 1) { // Warm up a nice cascade, to set my mind on four weeks of vacation
for (int nIter = 1; nIter < nNumargs; nIter++) { // Salad in New Zealand
if (QChar(*qApp->argv()[nIter]) != '-') { // Bunuelos in Colombia
- this->setFilename(qApp->argv()[nIter]); // Store inital filename
- Initial.setName(*this->getFilename()); // Initial file to load
- if (Initial.exists(*getFilename())) {
- this->loadData(Initial); // Pass to helper method
- enableIface(true); // Turn on the lights
- m_pStatbar->message(trUtf8("Loaded document ") + *this->getFilename());
+ try {
+ this->setFilename(qApp->argv()[nIter]); // Store inital filename
+ Initial.setName(*this->getFilename()); // Initial file to load
+ if (Initial.exists(*getFilename())) {
+ this->loadData(Initial); // Pass to helper method
+ enableIface(true); // Turn on the lights
+ m_pStatbar->message(trUtf8("Loaded document ") + *this->getFilename());
+ }
+ else // The inital file name does not correspond to a file
+ m_pStatbar->message(trUtf8(QString("The file ") + *this->getFilename() + QString(" does not exist.")));
+ }
+ catch (Genexcept& Genex) {
+ Genex.reportErr();
}
- else // The inital file name does not correspond to a file
- m_pStatbar->message(trUtf8(QString("The file ") + *this->getFilename() + QString(" does not exist.")));
}
}
}
|
|