mirror of
https://invent.kde.org/frameworks/kimageformats.git
synced 2025-07-20 20:34:17 -04:00
Fixes for sequential devices
This commit is contained in:
committed by
Albert Astals Cid
parent
49bd131eef
commit
c96ad6ba8a
@ -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)) {
|
||||
|
Reference in New Issue
Block a user