[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    QUANTA_3_1_BRANCH: quanta
From:       Andras Mantia <amantia () freemail ! hu>
Date:       2003-05-01 13:48:37
[Download RAW message or body]

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");
  }
 }


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic