Browse Source

fix error message in gpsbabel::File.

tags/gpsbabel_1_5_4
tsteven4 4 years ago
parent
commit
8666652b23
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      src/core/file.h

+ 3
- 3
src/core/file.h View File

@@ -48,9 +48,9 @@ public:

if (!status) {
fatal("Cannot open '%s' for %s. Error was '%s'.\n",
CSTR(QFile::fileName()),
mode == QIODevice::WriteOnly? "write" : "read",
CSTR(QFile::errorString()));
qPrintable(QFile::fileName()),
mode & QIODevice::WriteOnly? "write" : "read",
qPrintable(QFile::errorString()));
}
return status;
}

Loading…
Cancel
Save