[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdeaddons/kfile-plugins
From: David Faure <faure () kde ! org>
Date: 2004-09-08 22:27:01
Message-ID: 20040908222701.808161C67 () office ! kde ! org
[Download RAW message or body]
CVS commit by faure:
More fixes for remote urls.
The LNK plugin uses NetAccess to download the file. Maybe this should be done
in the framework?
M +3 -0 desktop/kfile_desktop.cpp 1.5
M +4 -1 html/kfile_html.cpp 1.9
M +3 -0 txt/kfile_txt.cpp 1.8
--- kdeaddons/kfile-plugins/desktop/kfile_desktop.cpp #1.4:1.5
@@ -64,4 +64,7 @@ KDotDesktopPlugin::KDotDesktopPlugin(QOb
bool KDotDesktopPlugin::readInfo( KFileMetaInfo& info, uint )
{
+ if ( info.path().isEmpty() ) // remote file
+ return false;
+
KDesktopFile file(info.path(), true);
--- kdeaddons/kfile-plugins/html/kfile_html.cpp #1.8:1.9
@@ -58,4 +58,7 @@ KHtmlPlugin::KHtmlPlugin( QObject *paren
bool KHtmlPlugin::readInfo( KFileMetaInfo& info, uint )
{
+ if ( info.path().isEmpty() ) // remote file
+ return false;
+
QFile f(info.path());
if (!f.open(IO_ReadOnly))
--- kdeaddons/kfile-plugins/txt/kfile_txt.cpp #1.7:1.8
@@ -58,4 +58,7 @@ void KTxtPlugin::makeMimeTypeInfo(const
bool KTxtPlugin::readInfo(KFileMetaInfo& info, uint)
{
+ if ( info.path().isEmpty() ) // remote file
+ return false;
+
QFile f(info.path());
if (!f.open(IO_ReadOnly))
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic