Merge pull request #2816 from cold-brewed/media-history-viso-iconfix
qt: Do not display removed viso directories in media history
This commit is contained in:
@@ -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() {
|
||||
|
Reference in New Issue
Block a user