mirror of
https://github.com/tumic0/GPXSee.git
synced 2025-07-26 16:34:23 +02:00
Improved error reporting
This commit is contained in:
@ -366,8 +366,10 @@ bool OruxMap::readXML(const QString &path, const QString &dir)
|
||||
{
|
||||
QFile file(path);
|
||||
|
||||
if (!file.open(QFile::ReadOnly | QFile::Text))
|
||||
if (!file.open(QFile::ReadOnly | QFile::Text)) {
|
||||
_errorString = file.errorString();
|
||||
return false;
|
||||
}
|
||||
|
||||
QXmlStreamReader reader(&file);
|
||||
if (reader.readNextStartElement()) {
|
||||
|
Reference in New Issue
Block a user