Paste P318

Masterwork From Distant Lands
ActivePublic

Authored by davidedmundson on Tue, Feb 12, 3:14 PM.
diff --git a/src/kcompressiondevice.cpp b/src/kcompressiondevice.cpp
index 37ba470..4d206cd 100644
--- a/src/kcompressiondevice.cpp
+++ b/src/kcompressiondevice.cpp
@@ -150,6 +150,9 @@ bool KCompressionDevice::open(QIODevice::OpenMode mode)
//qCWarning(KArchiveLog) << "KCompressionDevice::open: device is already open";
return true; // QFile returns false, but well, the device -is- open...
}
+ if (!d->filter) {
+ return false;
+ }
d->bOpenedUnderlyingDevice = false;
//qCDebug(KArchiveLog) << mode;
if (mode == QIODevice::ReadOnly) {
davidedmundson edited the content of this paste. (Show Details)Tue, Feb 12, 3:14 PM
davidedmundson changed the title of this paste from untitled to Masterwork From Distant Lands.