From e17f9f3cafb3f9cd62a069d578797ad89b13ee4e Mon Sep 17 00:00:00 2001 From: Montel Laurent Date: Sat, 25 May 2013 10:55:28 +0200 Subject: [PATCH] Fix crash when it's not visible --- src/recmonitor.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/recmonitor.cpp b/src/recmonitor.cpp index fc75eaab..3d6c0833 100644 --- a/src/recmonitor.cpp +++ b/src/recmonitor.cpp @@ -799,7 +799,8 @@ void RecMonitor::showWarningMessage(const QString &text, bool logAction) m_infoMessage->addAction(manualAction); } #if KDE_IS_VERSION(4,10,0) - m_infoMessage->animatedShow(); + if (isVisible()) + m_infoMessage->animatedShow(); #else QTimer::singleShot(0, m_infoMessage, SLOT(animatedShow())); #endif -- 2.39.2