Remove maleficent return in previous commit

This commit is contained in:
Vladislav Tronko
2016-09-26 14:27:53 +03:00
parent 11558a86b4
commit 45e17c9b49

View File

@@ -1404,9 +1404,6 @@ void MainWindow::keyPressEvent(QKeyEvent* event)
{
int tab = -1;
if (!(event->modifiers() & Qt::AltModifier))
return;
switch (event->key())
{
case Qt::Key_1:
@@ -1425,7 +1422,7 @@ void MainWindow::keyPressEvent(QKeyEvent* event)
break;
}
if (tab != -1)
if (event->modifiers() & Qt::AltModifier && tab != -1)
ui->mainTab->setCurrentIndex(tab);
QMainWindow::keyPressEvent(event);