Bug 86804

Summary: Opening a link in a new tab takes a long time
Product: [Applications] akregator Reporter: Stian Haklev <shaklev>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Debian testing   
OS: Linux   
Latest Commit: Version Fixed In:

Description Stian Haklev 2004-08-08 20:09:20 UTC
Version:           1.0beta5 (using KDE KDE 3.2.3)
Installed from:    Debian testing/unstable Packages
OS:                Linux

When clicking on a link in an article, it takes for ever (at least five seconds, often much more) to open a new tab. Often, I continue reading, and then when it finally is opened, it get's focus, and disturbs my reading.
Comment 1 Sashmit Bhaduri 2004-08-08 23:24:47 UTC
CVS commit by sashmit: 

special case (url.html, etc) so that no mimetype detection takes place

CCMAIL: 86804@bugs.kde.org


  M +12 -0     articleviewer.cpp   1.43


--- kdenonbeta/akregator/src/articleviewer.cpp  #1.42:1.43
@@ -17,4 +17,5 @@
 #include <kglobalsettings.h>
 #include <kstandarddirs.h>
+#include <kmimetype.h>
 #include <khtmlview.h>
 #include <krun.h>
@@ -276,4 +277,15 @@ void ArticleViewer::show(Feed *f, MyArti
 bool ArticleViewer::slotOpenURLRequest(const KURL& url, const KParts::URLArgs& args)
 {
+    // special case the fast case
+    QString type=url.url();
+    kdError() << "type==="<<type<<endl;
+    if (type.right(5)==".html" ||type.right(4)==".php" || type.right(4)==".htm"
+            || type.right(4)==".xml")
+    {
+        openPage(url, args, type);    
+        return true;
+    }
+
+    // else check mimetype
     new aKregatorRun(this, (QWidget*)parent(), this, url, args, true);
     return true;


Comment 2 Sashmit Bhaduri 2004-08-09 23:28:23 UTC
marking dup, since they are same issue

*** This bug has been marked as a duplicate of 86633 ***