From d7b34387bd362dc0745fa589c46657a85662d736 Mon Sep 17 00:00:00 2001 From: Thomas Jentzsch Date: Wed, 25 Aug 2021 17:59:26 +0200 Subject: [PATCH] Improved #807 fix --- src/gui/LauncherDialog.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/LauncherDialog.cxx b/src/gui/LauncherDialog.cxx index 68017f1f0..0753c7a5c 100644 --- a/src/gui/LauncherDialog.cxx +++ b/src/gui/LauncherDialog.cxx @@ -422,9 +422,9 @@ void LauncherDialog::updateUI() myDir->setText(myList->currentDir().getShortPath()); // Indicate how many files were found - bool hasParent = *myList->getList().begin() == " [..]"; ostringstream buf; - buf << (myList->getList().size() - (hasParent ? 1 : 0)) << (myShortCount ? " found" : " items found"); + buf << (myList->getList().size() - (currentDir().hasParent() ? 1 : 0)) + << (myShortCount ? " found" : " items found"); myRomCount->setLabel(buf.str()); // Update ROM info UI item