Disable forward button correctly when the file selector is opened

This commit is contained in:
David Capello 2019-11-14 17:55:13 -03:00
parent 497eb97067
commit c1d5c94e22

View File

@ -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.