From f50585a906bd05d71e8b1d5cfc90b2e1959a6ced Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Mon, 20 Sep 2021 06:34:11 -0700 Subject: 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 --- desktop-widgets/simplewidgets.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desktop-widgets/simplewidgets.cpp b/desktop-widgets/simplewidgets.cpp index eaafd32ee..de77458b9 100644 --- a/desktop-widgets/simplewidgets.cpp +++ b/desktop-widgets/simplewidgets.cpp @@ -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; -- cgit v1.2.3-70-g09d2