Commit e17f9f3c authored by Laurent Montel's avatar Laurent Montel 😁

Fix crash when it's not visible

parent 537da761
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment