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

factorize

parent c0174496
...@@ -74,7 +74,7 @@ using namespace KIPIPlugins; ...@@ -74,7 +74,7 @@ using namespace KIPIPlugins;
namespace KIPIFlickrExportPlugin namespace KIPIFlickrExportPlugin
{ {
FlickrTalker::FlickrTalker(QWidget* parent, const QString& serviceName) FlickrTalker::FlickrTalker(QWidget* const parent, const QString& serviceName)
{ {
m_parent = parent; m_parent = parent;
m_job = 0; m_job = 0;
...@@ -609,10 +609,7 @@ bool FlickrTalker::addPhoto(const QString& photoPath, const FPhotoInfo& info, ...@@ -609,10 +609,7 @@ bool FlickrTalker::addPhoto(const QString& photoPath, const FPhotoInfo& info,
QImage image; QImage image;
// Check if RAW file. // Check if RAW file.
QString rawFilesExt(KDcrawIface::KDcraw::rawFiles()); if (KPMetadata::isRawFile(photoPath))
QFileInfo fileInfo(photoPath);
if (rawFilesExt.toUpper().contains(fileInfo.suffix().toUpper()))
{ {
KDcrawIface::KDcraw::loadDcrawPreview(image, photoPath); KDcrawIface::KDcraw::loadDcrawPreview(image, photoPath);
} }
......
...@@ -72,7 +72,7 @@ public: ...@@ -72,7 +72,7 @@ public:
public: public:
FlickrTalker(QWidget* parent, const QString& serviceName); FlickrTalker(QWidget* const parent, const QString& serviceName);
~FlickrTalker(); ~FlickrTalker();
QString getUserName() const; 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