Summary: | Opening a link in a new tab takes a long time | ||
---|---|---|---|
Product: | [Applications] akregator | Reporter: | Stian Haklev <shaklev> |
Component: | general | Assignee: | 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
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; |