Home
Phabricator
Search
Log In
Paste
P318
Masterwork From Distant Lands
Active
Public
Actions
Authored by
davidedmundson
on Feb 12 2019, 3:14 PM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Flag For Later
Tags
None
Subscribers
None
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)
Feb 12 2019, 3:14 PM
davidedmundson
changed the title of this paste from untitled to
Masterwork From Distant Lands
.
Log In to Comment