Members of the KDE Community are recommended to subscribe to the kde-community mailing list at to allow them to participate in important discussions and receive other important announcements

Commit a408e1b5 authored by Nicolas Carion's avatar Nicolas Carion

failsafe message in core

parent 4c08595e
......@@ -488,12 +488,16 @@ void Core::pushUndo(QUndoCommand *command)
void Core::displayMessage(const QString &message, MessageType type, int timeout)
m_mainWindow->displayMessage(message, type, timeout);
if (m_mainWindow) {
m_mainWindow->displayMessage(message, type, timeout);
} else {
qDebug() << message;
void Core::displayBinMessage(const QString &text, int type, const QList<QAction *> &actions)
m_binWidget->doDisplayMessage(text, (KMessageWidget::MessageType) type, actions);
m_binWidget->doDisplayMessage(text, (KMessageWidget::MessageType)type, actions);
void Core::clearAssetPanel(int itemId)
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