diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2021-09-20 06:34:11 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2021-09-22 09:09:12 -0700 |
commit | f50585a906bd05d71e8b1d5cfc90b2e1959a6ced (patch) | |
tree | 10e4cff077bf56ddffa9476b2ba87c2f8322b2af /desktop-widgets | |
parent | 10798c2a8d33c5c3c8ea99c88ee9b72e3b31c60d (diff) | |
download | subsurface-f50585a906bd05d71e8b1d5cfc90b2e1959a6ced.tar.gz |
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>
Diffstat (limited to 'desktop-widgets')
-rw-r--r-- | desktop-widgets/simplewidgets.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; |