Bug 54709

Summary: Improper link handling in chat window
Product: [Applications] kopete Reporter: Matt Jones <jone1941>
Component: generalAssignee: Kopete Developers <kopete-bugs-null>
Status: RESOLVED FIXED    
Severity: wishlist    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:

Description Matt Jones 2003-02-16 09:02:37 UTC
Version:           CVS Trunk (using KDE KDE 3.1)
Installed from:    Gentoo Packages
Compiler:          gcc 3.2.1 
OS:          Linux

When clicking a link in a chat window, the system ignores the html (or whatever mimetype) default application.  This is a simple fix, so I added a patch below.

--- libkopete/ui/chatview.cpp   2003-02-16 03:03:36.000000000 -0500
+++ /home/mjones/chatview.cpp   2003-02-16 03:03:29.000000000 -0500
@@ -29,6 +29,7 @@ete $ diff -Naur protocols/oscar/oscaruserinfo.h ~/kopete-build/

 #include <kiconloader.h>ff -Naur protocols/oscar/oscaruserinfo.h ~/oscaruserinfo
 #include <kapplication.h>
+#include <krun.h>
 #include <kconfig.h>
 #include <kdebug.h>
 #include <kdialog.h>
@@ -494,11 +495,7 @@
 {
        kdDebug(14010) << k_funcinfo << "url=" << url.url() << endl;

-       // FIXME: Doesn't KRun do the mime type check automagically for us? - Martijn
-       if( url.protocol() == QString::fromLatin1( "mailto" ) )
-               kapp->invokeMailer( url.url() );
-       else
-               kapp->invokeBrowser( url.url() );
+       new KRun( url );
 }
Comment 1 Martijn Klingens 2003-02-16 12:58:17 UTC
Subject: Re: [Kopete-devel]  New: Improper link handling in chat window

Looks like Stefan just committed a fix for this, but forgot to close the bug 
:)

Stefan: this one is safe to backport to 0.6.1 btw so Matthew doesn't have to 
wait for Kopete 0.7 ;)

Comment 2 Stefan Gehn 2003-02-16 13:17:48 UTC
And again this shows that I shouldn't work on several things at once ;)