From c1d5c94e22ad34e4a8591a885cc9c188667978ec Mon Sep 17 00:00:00 2001 From: David Capello Date: Thu, 14 Nov 2019 17:55:13 -0300 Subject: [PATCH] Disable forward button correctly when the file selector is opened --- src/app/ui/file_selector.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/ui/file_selector.cpp b/src/app/ui/file_selector.cpp index a14f6e21b..218263152 100644 --- a/src/app/ui/file_selector.cpp +++ b/src/app/ui/file_selector.cpp @@ -720,8 +720,8 @@ void FileSelector::updateNavigationButtons() // isn't the last one. goForwardButton()->setEnabled( navigation_history.size() > 1 && - (navigation_position.is_null() || - navigation_position.get() != navigation_history.end()-1)); + navigation_position.is_valid() && + navigation_position.get() != navigation_history.end()-1); // Update the state of the go up button: if the current-folder isn't // the root-item.