[Kst] kst_hfi_calib_branch: kdeextragear-2/kst/kst/extensions/elog

George Staikos staikos at kde.org
Sun Nov 7 16:01:21 CET 2004


CVS commit by staikos: 

another elog bug discovered here.  launch browser needs http:// because the
argument generally doesn't have it


  M +4 -1      elog.cpp   1.17.2.1


--- kdeextragear-2/kst/kst/extensions/elog/elog.cpp  #1.17:1.17.2.1
@@ -176,5 +176,8 @@ void KstELOG::launchBrowser() {
   QString url;
 
-  url = _elogConfiguration->ipAddress() + ":" + QString::number(_elogConfiguration->portNumber());
+  if (!_elogConfiguration->ipAddress().startsWith("http://")) {
+    url = "http://";
+  }
+  url += _elogConfiguration->ipAddress() + ":" + QString::number(_elogConfiguration->portNumber());
   if (!_elogConfiguration->name().isEmpty()) {
     url += "/";





More information about the Kst mailing list