mirror of
https://invent.kde.org/frameworks/kimageformats.git
synced 2025-07-18 20:04:16 -04:00
Fixes for sequential devices
This commit is contained in:
committed by
Albert Astals Cid
parent
49bd131eef
commit
c96ad6ba8a
@ -56,6 +56,9 @@ bool OraHandler::canRead(QIODevice *device)
|
||||
qWarning("OraHandler::canRead() called with no device");
|
||||
return false;
|
||||
}
|
||||
if (device->isSequential()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
char buff[54];
|
||||
if (device->peek(buff, sizeof(buff)) == sizeof(buff)) {
|
||||
|
Reference in New Issue
Block a user