Skip to content

Commit

Permalink
Default to all supported image formats for import filter.
Browse files Browse the repository at this point in the history
  • Loading branch information
Deledrius committed Mar 7, 2024
1 parent 387ccc3 commit f1bcd97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PrpShop/PRP/Surface/QMipmap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ void QMipmap::onImportImage()

importDir.append("/" + st2qstr(tex->getKey()->getName())
.replace(QRegularExpression("[?:/\\*\"<>|]"), "_"));
QString filter = tr("DDS Files (*.dds);;JPEG Files (*.jpg *.jpeg);;PNG Files (*.png)");
QString filter = tr("All Images (*.dds *.jpg *.jpeg *.png);;DDS Files (*.dds);;JPEG Files (*.jpg *.jpeg);;PNG Files (*.png)");
QString filename = QFileDialog::getOpenFileName(this, tr("Import Image"), importDir, filter);

if (filename.isEmpty())
Expand Down

0 comments on commit f1bcd97

Please sign in to comment.