ui: Fixed escaping and interrupting
* Fixed crash when closing window with ESCAPE * Fixed interrupt status message not showing when interrupting parsing
This commit is contained in:
@@ -483,7 +483,6 @@ void QtMainWindow::toggleView(View* view, bool fromMenu)
|
||||
|
||||
void QtMainWindow::handleEscapeShortcut()
|
||||
{
|
||||
m_windowStack.popWindow();
|
||||
MessageInterruptTasks().dispatch();
|
||||
}
|
||||
|
||||
|
||||
@@ -260,6 +260,7 @@ void QtWindow::keyPressEvent(QKeyEvent *event)
|
||||
if (m_cancelAble && event->key() == Qt::Key_Escape)
|
||||
{
|
||||
emit canceled();
|
||||
return;
|
||||
}
|
||||
|
||||
QWidget::keyPressEvent(event);
|
||||
|
||||
Reference in New Issue
Block a user