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

List:       kde-commits
Subject:    kdeextragear-2/kmldonkey/kmldonkey
From:       Sebastian Sauer <mail () dipe ! org>
Date:       2004-03-29 13:30:35
Message-ID: 20040329133035.2552B90EB () office ! kde ! org
[Download RAW message or body]

CVS commit by sebsauer: 

Parse urls only if needed...


  M +11 -10    consolepage.cpp   1.9


--- kdeextragear-2/kmldonkey/kmldonkey/consolepage.cpp  #1.8:1.9
@@ -99,4 +99,9 @@ void ConsolePage::consoleMessage(const Q
     QString txt = QStyleSheet::escape(msg);
 
+    if (txt.startsWith("\n+--"))
+        txt = "<b>" + txt + "</b>";
+    else if (txt.startsWith("CORRUPTION DETECTED"))
+        txt = "<p><b>" + txt + "</b></p>";
+    else {
     QRegExp rxurl("[^\">](((https|http|ftp|news)://|(?!://)www\\.)([\\w\\.\\-\\_/~?=&%;:@+$,!*'\\(\\)\\|\\^\\[\\]\\`\\{\\}]+))");
  int pos = 0;
@@ -108,9 +113,5 @@ void ConsolePage::consoleMessage(const Q
         pos += replaceurl.length();
     }
-
-    if (txt.startsWith("\n+--"))
-        txt = "<b>" + txt + "</b>";
-    else if (txt.startsWith("CORRUPTION DETECTED"))
-        txt = "<p><b>" + txt + "</b></p>";
+    }
 
     txt.replace(QRegExp("\n(?!$)"), "<br>");


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

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