diff options
author | Johannes Schickel | 2012-09-26 02:45:34 +0200 |
---|---|---|
committer | Johannes Schickel | 2012-09-26 02:59:32 +0200 |
commit | bc1743b225597715164e3d2701b2c4b5731415a4 (patch) | |
tree | ac3326bd50e9b8f1529479cca20843955881ca66 /gui/widgets | |
parent | 66fb399227acd92db3dc8d9ee193a41609cf3d39 (diff) | |
download | scummvm-rg350-bc1743b225597715164e3d2701b2c4b5731415a4.tar.gz scummvm-rg350-bc1743b225597715164e3d2701b2c4b5731415a4.tar.bz2 scummvm-rg350-bc1743b225597715164e3d2701b2c4b5731415a4.zip |
GUI: Save/restore last scroll position in the list save/load dialog.
This should give a better user experience, since the user will not have to
scroll back to where he was when he used the dialog last.
Thanks to wjp for suggesting this.
Diffstat (limited to 'gui/widgets')
-rw-r--r-- | gui/widgets/list.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gui/widgets/list.h b/gui/widgets/list.h index 41fae37a71..47613b79f3 100644 --- a/gui/widgets/list.h +++ b/gui/widgets/list.h @@ -105,6 +105,7 @@ public: void scrollTo(int item); void scrollToEnd(); + int getCurrentScrollPos() const { return _currentPos; } void enableQuickSelect(bool enable) { _quickSelect = enable; } String getQuickSelectString() const { return _quickSelectStr; } |