Bug 86804 - Opening a link in a new tab takes a long time
Summary: Opening a link in a new tab takes a long time
Status: RESOLVED DUPLICATE of bug 86633
Alias: None
Product: akregator
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Debian testing Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-08 20:09 UTC by Stian Haklev
Modified: 2004-08-09 23:28 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***