Gui: Fix allocation of posted ESC event
This commit is contained in:
committed by
Kacper Donat
parent
ad2e866332
commit
c5489e0f0a
@@ -238,8 +238,8 @@ void ViewProvider::eventCallback(void * ud, SoEventCallback * node)
|
||||
|
||||
DockWindowManager* pDockMgr = DockWindowManager::instance();
|
||||
if (QWidget* widget = pDockMgr->getDockWindow("Tasks")) {
|
||||
QKeyEvent ev(QEvent::KeyPress, Qt::Key_Escape, Qt::NoModifier);
|
||||
qApp->postEvent(widget, &ev);
|
||||
auto* ev = new QKeyEvent(QEvent::KeyPress, Qt::Key_Escape, Qt::NoModifier);
|
||||
qApp->postEvent(widget, ev);
|
||||
}
|
||||
|
||||
auto func = new Gui::TimerFunction();
|
||||
|
||||
Reference in New Issue
Block a user