Commit 78aa6209 authored by Gilles Caulier's avatar Gilles Caulier 🗼
Browse files

factorize

parent 53141940
......@@ -174,14 +174,10 @@ bool ClockPhotoDialog::setImage(const KUrl& imageFile) const
{
bool success = false;
// Raw housekeeping.
QString rawFilesExt(KDcraw::rawFiles());
QFileInfo info(imageFile.path());
// Try to load the image into the d->image variable.
bool imageLoaded = false;
if (rawFilesExt.toUpper().contains(info.suffix().toUpper()))
if (KPMetadata::isRawFile(imageFile))
{
// In case of raw images, load the image the a QImage and convert it to
// the QPixmap for display.
......
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