Make .ico files usable (the plugin is already included)

This commit is contained in:
Jan Dalheimer 2014-01-02 18:51:40 +01:00
parent c85789e249
commit c0b6fd0647
2 changed files with 3 additions and 3 deletions

View File

@ -103,7 +103,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)");
tr("Icons") + "(*.png *.jpg *.jpeg *.ico)");
MMC->icons()->installIcons(fileNames);
}

View File

@ -258,7 +258,7 @@ void IconList::installIcons(QStringList iconFiles)
QString target = PathCombine("icons", fileinfo.fileName());
QString suffix = fileinfo.suffix();
if (suffix != "jpeg" && suffix != "png" && suffix != "jpg")
if (suffix != "jpeg" && suffix != "png" && suffix != "jpg" && suffix != "ico")
continue;
if (!QFile::copy(file, target))
@ -348,4 +348,4 @@ int IconList::getIconIndex(QString key)
return -1;
}
//#include "IconList.moc"
//#include "IconList.moc"