You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-22 15:06:45 +00:00
Fix file dialog crash on forward click when history is empty.
This commit is contained in:
@@ -1500,7 +1500,7 @@ void EditorFileDialog::_go_back() {
|
||||
}
|
||||
|
||||
void EditorFileDialog::_go_forward() {
|
||||
if (local_history_pos == local_history.size() - 1) {
|
||||
if (local_history_pos >= local_history.size() - 1) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -411,7 +411,7 @@ void FileDialog::_go_back() {
|
||||
}
|
||||
|
||||
void FileDialog::_go_forward() {
|
||||
if (local_history_pos == local_history.size() - 1) {
|
||||
if (local_history_pos >= local_history.size() - 1) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user