Fixes for sequential devices

This commit is contained in:
Mirco Miranda
2022-10-02 06:01:23 +00:00
committed by Albert Astals Cid
parent 49bd131eef
commit c96ad6ba8a
9 changed files with 137 additions and 67 deletions
+3
View File
@@ -57,6 +57,9 @@ bool KraHandler::canRead(QIODevice *device)
qWarning("KraHandler::canRead() called with no device");
return false;
}
if (device->isSequential()) {
return false;
}
char buff[57];
if (device->peek(buff, sizeof(buff)) == sizeof(buff)) {