[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-pim
Subject:    Re: [Kde-pim] QgpgME
From:       David Faure <faure () kde ! org>
Date:       2009-11-02 18:51:54
Message-ID: 200911021951.55222.faure () kde ! org
[Download RAW message or body]

On Friday 02 October 2009, Matthias Fuchs wrote:
>  boost::shared_ptr<QFile> qFile(new QFile(fileUrl.pathOrUrl()));
 
This should be fileUrl.toLocalFile() btw, with a previous check like
if (!fileUrl.isLocalFile())
  return;

(otherwise for ftp://ftp.kde.org/etc/password you'll open /etc/password 
locally; taking a random file name as example ;) )

-- 
David Faure, faure@kde.org, http://www.davidfaure.fr
Sponsored by Nokia to work on KDE, incl. Konqueror 
(http://www.konqueror.org).
_______________________________________________
KDE PIM mailing list kde-pim@kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic