mirror of
https://github.com/overte-org/overte.git
synced 2025-08-04 02:03:36 +02:00
Fix off by one error
This commit is contained in:
parent
cde56d6fa2
commit
1cf89f046c
1 changed files with 1 additions and 1 deletions
|
@ -1910,7 +1910,7 @@ void Application::keyPressEvent(QKeyEvent* event) {
|
|||
if (isMeta || isOption) {
|
||||
unsigned int index = static_cast<unsigned int>(event->key() - Qt::Key_1);
|
||||
auto displayPlugins = PluginManager::getInstance()->getDisplayPlugins();
|
||||
if (index <= displayPlugins.size()) {
|
||||
if (index < displayPlugins.size()) {
|
||||
auto targetPlugin = displayPlugins.at(index);
|
||||
QString targetName = targetPlugin->getName();
|
||||
auto menu = Menu::getInstance();
|
||||
|
|
Loading…
Reference in a new issue