Added: Unbuffered flag check.

This commit is contained in:
alqualos 2005-07-08 20:22:28 +00:00
parent 6c1aaee5c6
commit 230a4f5aa3

View file

@ -140,6 +140,10 @@ bool QuaZipFile::open(OpenMode mode, int *method, int *level, bool raw, const ch
qWarning("QuaZipFile::open(): already opened");
return false;
}
if(mode&Unbuffered) {
qWarning("QuaZipFile::open(): Unbuffered mode is not supported");
return false;
}
if((mode&ReadOnly)&&!(mode&WriteOnly)) {
if(internal) {
if(!zip->open(QuaZip::mdUnzip)) {