From aef0ccb1a25ff9989256796dcb5264ff936f81b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Wed, 31 Oct 2018 21:54:22 +0100 Subject: GH-2232 add gif icon support (not animated) --- api/gui/icons/IconList.cpp | 2 +- application/dialogs/IconPickerDialog.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api/gui/icons/IconList.cpp b/api/gui/icons/IconList.cpp index 870b347e..5bf5f5e7 100644 --- a/api/gui/icons/IconList.cpp +++ b/api/gui/icons/IconList.cpp @@ -261,7 +261,7 @@ void IconList::installIcons(const QStringList &iconFiles) QString target = FS::PathCombine(m_dir.dirName(), fileinfo.fileName()); QString suffix = fileinfo.suffix(); - if (suffix != "jpeg" && suffix != "png" && suffix != "jpg" && suffix != "ico" && suffix != "svg") + if (suffix != "jpeg" && suffix != "png" && suffix != "jpg" && suffix != "ico" && suffix != "svg" && suffix != "gif") continue; if (!QFile::copy(file, target)) diff --git a/application/dialogs/IconPickerDialog.cpp b/application/dialogs/IconPickerDialog.cpp index 2306bad0..b4260861 100644 --- a/application/dialogs/IconPickerDialog.cpp +++ b/application/dialogs/IconPickerDialog.cpp @@ -104,7 +104,7 @@ void IconPickerDialog::addNewIcon() QString selectIcons = tr("Select Icons"); //: The type of icon files QStringList fileNames = QFileDialog::getOpenFileNames(this, selectIcons, QString(), - tr("Icons") + "(*.png *.jpg *.jpeg *.ico *.svg)"); + tr("Icons") + "(*.png *.jpg *.jpeg *.ico *.svg *.gif)"); MMC->icons()->installIcons(fileNames); } -- cgit v1.2.3