desktop/image-time-shift: use better filename filter

We already have a function to select all supported image formats. Let's
just use that.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2021-09-20 06:34:11 -07:00
parent 10798c2a8d
commit f50585a906

View file

@ -128,7 +128,7 @@ void ShiftImageTimesDialog::syncCameraClicked()
QStringList fileNames = QFileDialog::getOpenFileNames(this,
tr("Open image file"),
DiveListView::lastUsedImageDir(),
tr("Image files") + " (*.jpg *.jpeg)");
QString("%1 (%2)").arg(tr("Image files"), imageExtensionFilters().join(" ")));
if (fileNames.isEmpty())
return;