From ed7a3c21625d2508d91365d4d26792313bc01c77 Mon Sep 17 00:00:00 2001 From: Krad Date: Fri, 14 Jan 2022 14:20:52 +0800 Subject: [PATCH] Fix debug updateMessagePriority bug. --- src/TopBarWidget.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/TopBarWidget.cpp b/src/TopBarWidget.cpp index 2fd7ae9..8a73b9a 100644 --- a/src/TopBarWidget.cpp +++ b/src/TopBarWidget.cpp @@ -85,9 +85,9 @@ TopBarWidget::TopBarWidget(QWidget *parent, Qt::WindowFlags f) : QWidget(parent, int d = (f<updateMessagePriority(i,1); + if (w)w->updateMessagePriority(i,1); } else{ - w->updateMessagePriority(i,-1); + if (w)w->updateMessagePriority(i,-1); } } });