Summary: | Files with (:) colon in the name don't load into projects when rescanning project. No error generated. | ||
---|---|---|---|
Product: | [Unmaintained] quanta | Reporter: | Robert Nickel <robert> |
Component: | general | Assignee: | András Manţia <amantia> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Robert Nickel
2003-03-31 00:49:52 UTC
Hi, there is a reason for this: under windows, the colon ( : ) is needed to recognize drive letters like C: and so on. so some long time ago the core developers decided, that filenames are not allowed to contain colons any more, so that nobody can rely on colons in file names. so we won Subject: QUANTA_3_1_BRANCH: quanta CVS commit by amantia: Show files with : inside their names correctly in the Project Tree. CCMAIL: 56639-done@bugs.kde.org M +1 -0 ChangeLog 1.90.2.64 M +4 -7 quanta/quantacommon.cpp 1.29.2.7 --- quanta/ChangeLog #1.90.2.63:1.90.2.64 @@ -23,4 +23,5 @@ - use the Attribute Quotation setting - allow opening of empty local files [#57718] + - show files with : inside their names correctly in the Project Tree [#56639] - usability enhancements: - bring up the message output window, when and action/plugin wants to printed --- quanta/quanta/quantacommon.cpp #1.29.2.6:1.29.2.7 @@ -28,5 +28,5 @@ #include <kmessagebox.h> #include <klocale.h> - +#include <kprotocolinfo.h> #include "quantacommon.h" @@ -92,12 +92,9 @@ QString QuantaCommon::attrCase( const QS void QuantaCommon::setUrl(KURL &url, QString urlString) { - if (urlString.find(":") == -1) + url = urlString; + if (!KProtocolInfo::isKnownProtocol(url)) { url.setPath(urlString); - if (url.protocol().isEmpty()) url.setProtocol("file"); - } - else - { - url = urlString; + url.setProtocol("file"); } } |