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:
parent
bde33f98a9
commit
c8c0871754
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user