Fix crash with mouse input in search plugin

develop
lethosor 2014-05-16 20:42:18 -04:00
parent e4a6f13347
commit 293a535aa4
1 changed files with 4 additions and 0 deletions

@ -180,6 +180,10 @@ public:
{ {
// Query typing mode // Query typing mode
if (input->empty())
{
return false;
}
df::interface_key last_token = *input->rbegin(); df::interface_key last_token = *input->rbegin();
if (last_token >= interface_key::STRING_A032 && last_token <= interface_key::STRING_A126) if (last_token >= interface_key::STRING_A032 && last_token <= interface_key::STRING_A126)
{ {