Commit 80343778 authored by Gilles Caulier's avatar Gilles Caulier 🗼
Browse files

factorize

parent c0174496
......@@ -74,7 +74,7 @@ using namespace KIPIPlugins;
namespace KIPIFlickrExportPlugin
{
FlickrTalker::FlickrTalker(QWidget* parent, const QString& serviceName)
FlickrTalker::FlickrTalker(QWidget* const parent, const QString& serviceName)
{
m_parent = parent;
m_job = 0;
......@@ -609,10 +609,7 @@ bool FlickrTalker::addPhoto(const QString& photoPath, const FPhotoInfo& info,
QImage image;
// Check if RAW file.
QString rawFilesExt(KDcrawIface::KDcraw::rawFiles());
QFileInfo fileInfo(photoPath);
if (rawFilesExt.toUpper().contains(fileInfo.suffix().toUpper()))
if (KPMetadata::isRawFile(photoPath))
{
KDcrawIface::KDcraw::loadDcrawPreview(image, photoPath);
}
......
......@@ -72,7 +72,7 @@ public:
public:
FlickrTalker(QWidget* parent, const QString& serviceName);
FlickrTalker(QWidget* const parent, const QString& serviceName);
~FlickrTalker();
QString getUserName() const;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment