From f2ecfddb688eaa19d87c10b09c9139944c348638 Mon Sep 17 00:00:00 2001 From: cold-brewed Date: Sun, 6 Nov 2022 10:17:56 -0500 Subject: [PATCH] qt: Do not display viso directories that were removed --- src/qt/qt_mediamenu.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/qt/qt_mediamenu.cpp b/src/qt/qt_mediamenu.cpp index 560249660..159c33b39 100644 --- a/src/qt/qt_mediamenu.cpp +++ b/src/qt/qt_mediamenu.cpp @@ -511,6 +511,7 @@ void MediaMenu::updateImageHistory(int index, int slot, ui::MediaType type) { QString menu_item_name = fi.fileName().isEmpty() ? tr("previous image").toUtf8().constData() : fi.fileName().toUtf8().constData(); imageHistoryUpdatePos->setText(QString::asprintf(tr("%s").toUtf8().constData(), menu_item_name.toUtf8().constData())); imageHistoryUpdatePos->setVisible(!fi.fileName().isEmpty()); + imageHistoryUpdatePos->setVisible(fi.exists()); } void MediaMenu::clearImageHistory() {