From 323727d1b16f2fad09a7e11e0c6f17da4e0920ea Mon Sep 17 00:00:00 2001 From: Stephen Anthony Date: Fri, 24 Jun 2022 18:43:34 -0230 Subject: [PATCH] Fix missing names in NavigationWidget. --- src/emucore/FSNode.hxx | 7 ++++--- src/gui/LauncherDialog.hxx | 1 - src/unix/FSNodePOSIX.cxx | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/emucore/FSNode.hxx b/src/emucore/FSNode.hxx index 429603209..efdc9b75c 100644 --- a/src/emucore/FSNode.hxx +++ b/src/emucore/FSNode.hxx @@ -24,9 +24,10 @@ #include "bspf.hxx" /* - * The API described in this header is meant to allow for file system browsing in a - * portable fashion. To this end, multiple or single roots have to be supported - * (compare Unix with a single root, Windows with multiple roots C:, D:, ...). + * The API described in this header is meant to allow for file system browsing + * in a portable fashion. To this end, multiple or single roots have to be + * supported (compare Unix with a single root, Windows with multiple roots C:, + * D:, ...). * * To this end, we abstract away from paths; implementations can be based on * paths (and it's left to them whether / or \ or : is the path separator :-). diff --git a/src/gui/LauncherDialog.hxx b/src/gui/LauncherDialog.hxx index 185111029..10f84cc42 100644 --- a/src/gui/LauncherDialog.hxx +++ b/src/gui/LauncherDialog.hxx @@ -102,7 +102,6 @@ class LauncherDialog : public Dialog, CommandSender */ void quit(); - void tick() override; private: diff --git a/src/unix/FSNodePOSIX.cxx b/src/unix/FSNodePOSIX.cxx index bf8ad7076..e1b54cd24 100644 --- a/src/unix/FSNodePOSIX.cxx +++ b/src/unix/FSNodePOSIX.cxx @@ -54,8 +54,8 @@ FSNodePOSIX::FSNodePOSIX(const string& path, bool verify) } _fspath = _path; - _displayName = _fspath.filename(); _path = _fspath.string(); + _displayName = lastPathComponent(_path); if(verify) setFlags();