1
0
mirror of https://github.com/KDE/latte-dock.git synced 2024-12-24 05:33:50 +03:00

fix crash for Esc in Settings window

This commit is contained in:
Michail Vourlakos 2020-04-15 16:49:07 +03:00
parent bde33f98a9
commit c8c0871754

View File

@ -73,7 +73,7 @@ void GenericDialog::initMessageWidget()
void GenericDialog::keyPressEvent(QKeyEvent *event)
{
if (event && event->key() == Qt::Key_Escape) {
if (m_messageWidget->isVisible()) {
if (m_messageWidget && m_messageWidget->isVisible()) {
m_hideInlineMessageTimer.stop();
m_messageWidget->animatedHide();
clearCurrentMessageActions();