From 79f9bbe6af33e2500aa60a1eaa451aac88f87ca7 Mon Sep 17 00:00:00 2001 From: Stenzek Date: Thu, 8 Jan 2026 20:09:22 +1000 Subject: [PATCH] Qt: Hide size for directories in ISO browser It was nonsensical since it was reporting the size of the directory entry, which has no correlation with the size of the files in the directory. --- src/duckstation-qt/isobrowserwindow.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/duckstation-qt/isobrowserwindow.cpp b/src/duckstation-qt/isobrowserwindow.cpp index c0a98ef55..4aa14f814 100644 --- a/src/duckstation-qt/isobrowserwindow.cpp +++ b/src/duckstation-qt/isobrowserwindow.cpp @@ -331,7 +331,8 @@ void ISOBrowserWindow::populateFiles(const QString& path) item->setData(0, Qt::UserRole, QString::fromStdString(full_path)); item->setData(0, Qt::UserRole + 1, entry.IsDirectory()); item->setText(1, QString::fromStdString(entry.recoding_time.GetFormattedTime())); - item->setText(2, tr("%1 KB").arg(Common::AlignUpPow2(entry.length_le, 1024) / 1024)); + if (!entry.IsDirectory()) + item->setText(2, tr("%1 KB").arg(Common::AlignUpPow2(entry.length_le, 1024) / 1024)); m_ui.fileView->addTopLevelItem(item); };