From c17b5d9cd1692b27056215b54aa91f515bec2100 Mon Sep 17 00:00:00 2001 From: Gabi Melman Date: Fri, 9 Jun 2023 12:41:36 +0300 Subject: [PATCH] Update qt_sinks.h --- include/spdlog/sinks/qt_sinks.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/include/spdlog/sinks/qt_sinks.h b/include/spdlog/sinks/qt_sinks.h index 7e4fb513..13ce9ce5 100644 --- a/include/spdlog/sinks/qt_sinks.h +++ b/include/spdlog/sinks/qt_sinks.h @@ -12,9 +12,8 @@ // setCentralWidget(edit); // auto logger = spdlog::qt_color_logger_mt("my_logger", my_edit_widget); // -// Warning: those sinks won't be notified if the target widget is destroyed. -// If the widget's lifetime can be shorter than the logger's one, you should provide some permanent QObject, -// and then use a standard signal/slot. +// Warning: those sinks won't be notified if the target widget is destroyed. +// Make sure the sink get destryoed, or not used after the widget is gone. // #include "spdlog/common.h"