Changeset View
Changeset View
Standalone View
Standalone View
iso/iso.cpp
Show First 20 Lines • Show All 506 Lines • ▼ Show 20 Line(s) | 475 | { | |||
---|---|---|---|---|---|
507 | if (m_isoFile->device()->isOpen()) m_isoFile->device()->close(); | 507 | if (m_isoFile->device()->isOpen()) m_isoFile->device()->close(); | ||
508 | } | 508 | } | ||
509 | 509 | | |||
510 | QString kio_isoProtocol::getPath(const QUrl &url) | 510 | QString kio_isoProtocol::getPath(const QUrl &url) | ||
511 | { | 511 | { | ||
512 | QString path = url.path(); | 512 | QString path = url.path(); | ||
513 | REPLACE_DIR_SEP2(path); | 513 | REPLACE_DIR_SEP2(path); | ||
514 | 514 | | |||
515 | #ifdef Q_WS_WIN | 515 | #ifdef Q_OS_WIN | ||
516 | if (path.startsWith(DIR_SEPARATOR)) { | 516 | if (path.startsWith(DIR_SEPARATOR)) { | ||
517 | int p = 1; | 517 | int p = 1; | ||
518 | while (p < path.length() && path[ p ] == DIR_SEPARATOR_CHAR) | 518 | while (p < path.length() && path[ p ] == DIR_SEPARATOR_CHAR) | ||
519 | p++; | 519 | p++; | ||
520 | /* /C:/Folder */ | 520 | /* /C:/Folder */ | ||
521 | if (p + 2 <= path.length() && path[ p ].isLetter() && path[ p + 1 ] == ':') { | 521 | if (p + 2 <= path.length() && path[ p ].isLetter() && path[ p + 1 ] == ':') { | ||
522 | path = path.mid(p); | 522 | path = path.mid(p); | ||
523 | } | 523 | } | ||
524 | } | 524 | } | ||
525 | #endif | 525 | #endif | ||
526 | return path; | 526 | return path; | ||
527 | } | 527 | } |