|
|
@ -119,15 +119,15 @@ void URLNavigator::setURL(const KURL& url)
|
|
|
|
|
|
|
|
|
|
|
|
if (url.protocol() == "zip") {
|
|
|
|
if (url.protocol() == "zip") {
|
|
|
|
bool stillInside = false;
|
|
|
|
bool stillInside = false;
|
|
|
|
if (KMimeType::findByPath(url.url(-1))
|
|
|
|
if( KMimeType::findByPath( url.url(-1) )->is("application/x-zip") ||
|
|
|
|
->is("application/x-zip")) {
|
|
|
|
KMimeType::findByPath( url.url(-1) )->is("application/x-jar") ) {
|
|
|
|
stillInside = true;
|
|
|
|
stillInside = true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
else {
|
|
|
|
KURL url1 = url.upURL();
|
|
|
|
KURL url1 = url.upURL();
|
|
|
|
while (url1 != url1.upURL()) {
|
|
|
|
while (url1 != url1.upURL()) {
|
|
|
|
if (KMimeType::findByPath(url1.url(-1))
|
|
|
|
if( KMimeType::findByPath( url1.url(-1) )->is("application/x-zip") ||
|
|
|
|
->is("application/x-zip")) {
|
|
|
|
KMimeType::findByPath( url1.url(-1) )->is("application/x-jar") ) {
|
|
|
|
stillInside = true;
|
|
|
|
stillInside = true;
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -149,7 +149,9 @@ void URLNavigator::setURL(const KURL& url)
|
|
|
|
kmp->is("application/x-tarz") ||
|
|
|
|
kmp->is("application/x-tarz") ||
|
|
|
|
kmp->is("application/x-tbz") ||
|
|
|
|
kmp->is("application/x-tbz") ||
|
|
|
|
kmp->is("application/x-tgz") ||
|
|
|
|
kmp->is("application/x-tgz") ||
|
|
|
|
kmp->is("application/x-tzo")
|
|
|
|
kmp->is("application/x-tzo") ||
|
|
|
|
|
|
|
|
kmp->is("application/x-txz") ||
|
|
|
|
|
|
|
|
kmp->is("application/x-tlzma")
|
|
|
|
) {
|
|
|
|
) {
|
|
|
|
stillInside = true;
|
|
|
|
stillInside = true;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -162,7 +164,9 @@ void URLNavigator::setURL(const KURL& url)
|
|
|
|
kmp->is("application/x-tarz") ||
|
|
|
|
kmp->is("application/x-tarz") ||
|
|
|
|
kmp->is("application/x-tbz") ||
|
|
|
|
kmp->is("application/x-tbz") ||
|
|
|
|
kmp->is("application/x-tgz") ||
|
|
|
|
kmp->is("application/x-tgz") ||
|
|
|
|
kmp->is("application/x-tzo")
|
|
|
|
kmp->is("application/x-tzo") ||
|
|
|
|
|
|
|
|
kmp->is("application/x-txz") ||
|
|
|
|
|
|
|
|
kmp->is("application/x-tlzma")
|
|
|
|
) {
|
|
|
|
) {
|
|
|
|
stillInside = true;
|
|
|
|
stillInside = true;
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|