diff --git a/src/gui/Launcher.cxx b/src/gui/Launcher.cxx index eb1324f9f..379d9841e 100644 --- a/src/gui/Launcher.cxx +++ b/src/gui/Launcher.cxx @@ -75,9 +75,9 @@ const string& Launcher::selectedRomMD5() } // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -const FilesystemNode& Launcher::currentNode() const +const FilesystemNode& Launcher::currentDir() const { - return (static_cast(myBaseDialog))->currentNode(); + return (static_cast(myBaseDialog))->currentDir(); } // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/gui/Launcher.hxx b/src/gui/Launcher.hxx index 7a1b57fa7..af0e91f8b 100644 --- a/src/gui/Launcher.hxx +++ b/src/gui/Launcher.hxx @@ -55,9 +55,9 @@ class Launcher : public DialogContainer const string& selectedRomMD5(); /** - Wrapper for LauncherDialog::currentNode() method. + Wrapper for LauncherDialog::currentDir() method. */ - const FilesystemNode& currentNode() const; + const FilesystemNode& currentDir() const; /** Wrapper for LauncherDialog::reload() method. diff --git a/src/gui/LauncherDialog.cxx b/src/gui/LauncherDialog.cxx index c33832ce9..3003a04a3 100644 --- a/src/gui/LauncherDialog.cxx +++ b/src/gui/LauncherDialog.cxx @@ -261,6 +261,12 @@ const FilesystemNode& LauncherDialog::currentNode() const return myList->selected(); } +// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +const FilesystemNode& LauncherDialog::currentDir() const +{ + return myList->currentDir(); +} + // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - void LauncherDialog::reload() { diff --git a/src/gui/LauncherDialog.hxx b/src/gui/LauncherDialog.hxx index d112f0601..d734cdba5 100644 --- a/src/gui/LauncherDialog.hxx +++ b/src/gui/LauncherDialog.hxx @@ -74,12 +74,19 @@ class LauncherDialog : public Dialog const string& selectedRomMD5(); /** - Get node for the currently selected directory. + Get node for the currently selected entry. - @return FilesystemNode currently active + @return FilesystemNode currently selected */ const FilesystemNode& currentNode() const; + /** + Get node for the current directory. + + @return FilesystemNode (directory) currently active + */ + const FilesystemNode& currentDir() const; + /** Reload the current listing */ diff --git a/src/gui/RomAuditDialog.cxx b/src/gui/RomAuditDialog.cxx index 25cf78220..f83586d45 100644 --- a/src/gui/RomAuditDialog.cxx +++ b/src/gui/RomAuditDialog.cxx @@ -99,7 +99,7 @@ RomAuditDialog::~RomAuditDialog() void RomAuditDialog::loadConfig() { const string& currentdir = - instance().launcher().currentNode().getShortPath(); + instance().launcher().currentDir().getShortPath(); const string& path = currentdir == "" ? instance().settings().getString("romdir") : currentdir;