summaryrefslogtreecommitdiff
path: root/src/fios_gui.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2011-05-15 12:30:14 +0000
committerfrosch <frosch@openttd.org>2011-05-15 12:30:14 +0000
commit4c63d8e82f385dfad5aa407717234df30bc85a0b (patch)
treec777cfa44006b0c3b92430a1ddcd9cd60bf36994 /src/fios_gui.cpp
parent990ec6f0a91038dabde458d6aa28a608ba3c52f5 (diff)
downloadopenttd-4c63d8e82f385dfad5aa407717234df30bc85a0b.tar.xz
(svn r22463) -Fix [FS#4615]: Update the fios GUI immediatelly after scanning a new directory, so queued events reach the window when already updated.
Diffstat (limited to 'src/fios_gui.cpp')
-rw-r--r--src/fios_gui.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/fios_gui.cpp b/src/fios_gui.cpp
index 13c2a3532..8d1fb1b80 100644
--- a/src/fios_gui.cpp
+++ b/src/fios_gui.cpp
@@ -211,6 +211,9 @@ void BuildFileList()
default: FiosGetSavegameList(_saveload_mode); break;
}
+
+ /* Invalidate saveload window */
+ InvalidateWindowData(WC_SAVELOAD, 0, 2, true);
}
static void MakeSortedSaveGameList()
@@ -684,6 +687,12 @@ public:
!_load_check_data.HasNewGrfs());
}
break;
+ case 2:
+ /* _fios_items changed */
+ this->vscroll->SetCount(_fios_items.Length());
+ this->selected = NULL;
+ _load_check_data.Clear();
+ break;
}
}
};