mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
Merge branch 'pr2715'
This commit is contained in:
commit
119fbe7468
|
@ -496,7 +496,8 @@ void FileTransferWidget::handleButton(QPushButton *btn)
|
||||||
|
|
||||||
void FileTransferWidget::showPreview(const QString &filename)
|
void FileTransferWidget::showPreview(const QString &filename)
|
||||||
{
|
{
|
||||||
static const QStringList previewExtensions = { "png", "jpeg", "jpg", "gif", "PNG", "JPEG", "JPG", "GIF" };
|
static const QStringList previewExtensions = { "png", "jpeg", "jpg", "gif", "svg",
|
||||||
|
"PNG", "JPEG", "JPG", "GIF", "SVG" };
|
||||||
|
|
||||||
if (previewExtensions.contains(QFileInfo(filename).suffix()))
|
if (previewExtensions.contains(QFileInfo(filename).suffix()))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user