mirror of
https://bitbucket.org/smil3y/kde-playground.git
synced 2025-02-23 10:22:50 +00:00
karchivemanager: fix writable archive detection
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
bede96fb13
commit
ba2d873fe6
1 changed files with 3 additions and 5 deletions
|
@ -454,11 +454,9 @@ KArchiveManager::KArchiveManager(const QString &path)
|
|||
|
||||
const KMimeType::Ptr mime = KMimeType::findByPath(path);
|
||||
if (mime) {
|
||||
foreach (const QString &parentmime, mime->allParentMimeTypes()) {
|
||||
if (s_writemimes.contains(parentmime)) {
|
||||
d->m_writable = true;
|
||||
break;
|
||||
}
|
||||
if (s_writemimes.contains(mime->name())) {
|
||||
d->m_writable = true;
|
||||
kDebug() << "path is writable" << path << mime->name();
|
||||
}
|
||||
} else {
|
||||
d->m_writable = false;
|
||||
|
|
Loading…
Add table
Reference in a new issue