aboutsummaryrefslogtreecommitdiff
path: root/gui/widgets
diff options
context:
space:
mode:
authorJaromir Wysoglad2019-07-16 22:09:05 -0700
committerFilippos Karapetis2019-09-01 22:47:55 +0300
commit318c6d7ec6e5562d0fd3e9d70386d0fcde86cf12 (patch)
treed38d0048557b0fbc0a5ea09fcaf36abf3890cfdd /gui/widgets
parentd2d34a4ecaabd7d436bfab942c9003d0e478ad2a (diff)
downloadscummvm-rg350-318c6d7ec6e5562d0fd3e9d70386d0fcde86cf12.tar.gz
scummvm-rg350-318c6d7ec6e5562d0fd3e9d70386d0fcde86cf12.tar.bz2
scummvm-rg350-318c6d7ec6e5562d0fd3e9d70386d0fcde86cf12.zip
TTS: Finish implementing the Windows TTS manager
Diffstat (limited to 'gui/widgets')
-rw-r--r--gui/widgets/popup.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gui/widgets/popup.h b/gui/widgets/popup.h
index a898479410..3ccf8787d5 100644
--- a/gui/widgets/popup.h
+++ b/gui/widgets/popup.h
@@ -77,7 +77,7 @@ public:
uint32 getSelectedTag() const { return (_selectedItem >= 0) ? _entries[_selectedItem].tag : (uint32)-1; }
// const String& getSelectedString() const { return (_selectedItem >= 0) ? _entries[_selectedItem].name : String::emptyString; }
- void handleMouseEntered(int button) { read(_entries[_selectedItem].name); setFlags(WIDGET_HILITED); markAsDirty(); }
+ void handleMouseEntered(int button) { if (_selectedItem != -1) read(_entries[_selectedItem].name); setFlags(WIDGET_HILITED); markAsDirty(); }
void handleMouseLeft(int button) { clearFlags(WIDGET_HILITED); markAsDirty(); }
virtual void reflowLayout();