Permalink
Browse files

GH-2232 add gif icon support (not animated)

  • Loading branch information...
peterix committed Oct 31, 2018
1 parent d9c1fc0 commit aef0ccb1a25ff9989256796dcb5264ff936f81b7
Showing with 2 additions and 2 deletions.
  1. +1 −1 api/gui/icons/IconList.cpp
  2. +1 −1 application/dialogs/IconPickerDialog.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))
@@ -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);
}

0 comments on commit aef0ccb

Please sign in to comment.