Correct a flaw in recently modified actions for key F6.

This commit is contained in:
Joe Taylor 2019-04-17 14:53:20 -04:00
parent 655e0029fd
commit f7b0e24e70

View File

@ -1966,16 +1966,13 @@ void MainWindow::keyPressEvent (QKeyEvent * e)
if(bAltF1F6) { if(bAltF1F6) {
bool b=ui->cbFirst->isChecked(); bool b=ui->cbFirst->isChecked();
ui->cbFirst->setChecked(!b); ui->cbFirst->setChecked(!b);
return;
} else { } else {
if(e->modifiers() & Qt::ShiftModifier) { if(e->modifiers() & Qt::ShiftModifier) {
on_actionDecode_remaining_files_in_directory_triggered(); on_actionDecode_remaining_files_in_directory_triggered();
} else { } else {
on_actionOpen_triggered(); on_actionOpen_next_in_directory_triggered();
} }
return;
} }
on_actionOpen_next_in_directory_triggered();
return; return;
case Qt::Key_F11: case Qt::Key_F11:
if((e->modifiers() & Qt::ControlModifier) and (e->modifiers() & Qt::ShiftModifier)) { if((e->modifiers() & Qt::ControlModifier) and (e->modifiers() & Qt::ShiftModifier)) {