Commit 7896733a authored by Dirk Wilden's avatar Dirk Wilden
Browse files

meaningful error message when file not found

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@8497 383ad7c9-94d9-4d36-a494-682f7c89f535
parent b4da2979
......@@ -413,6 +413,11 @@ bool FileOFFPlugin::readFileOptions(QString _filename, OFFImporter& _importer) {
bool FileOFFPlugin::readOFFFile(QString _filename, OFFImporter& _importer) {
if ( !QFile(_filename).exists() ){
emit log(LOGERR, tr("Unable to load OFF file. File not found!"));
return false;
}
if(!readFileOptions(_filename, _importer)) {
return false;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment