From 3a903babee4eb8fee382b45edb6707f1d1c94c97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=BCseyin=20ASLIT=C3=9CRK?= Date: Mon, 15 Jun 2020 15:03:59 +0300 Subject: [PATCH] QuickShow: Use new Bitmap::is_path_a_supported_image_format method --- Applications/QuickShow/QSWidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Applications/QuickShow/QSWidget.cpp b/Applications/QuickShow/QSWidget.cpp index 46e505947e..dfd60759f7 100644 --- a/Applications/QuickShow/QSWidget.cpp +++ b/Applications/QuickShow/QSWidget.cpp @@ -84,7 +84,7 @@ void QSWidget::navigate(Directions direction) Core::DirIterator iterator(current_dir, Core::DirIterator::Flags::SkipDots); while (iterator.has_next()) { String file = iterator.next_full_path(); - if (!file.ends_with(".png") && !file.ends_with(".gif")) // TODO: Find a batter way to filter supported images. + if (!Gfx::Bitmap::is_path_a_supported_image_format(file)) continue; m_files_in_same_dir.append(file); }