diff --git a/src/plugins/cpaster/codepasterprotocol.cpp b/src/plugins/cpaster/codepasterprotocol.cpp index b6e0e02cd0d..6eef0f1addd 100644 --- a/src/plugins/cpaster/codepasterprotocol.cpp +++ b/src/plugins/cpaster/codepasterprotocol.cpp @@ -205,7 +205,7 @@ void CodePasterProtocol::fetchFinished() void CodePasterProtocol::listFinished() { if (m_listReply->error()) { - Core::ICore::messageManager()->printToOutputPane(m_listReply->errorString(), true); + Core::ICore::messageManager()->printToOutputPane(m_listReply->errorString(), Core::MessageManager::NoModeSwitch); } else { const QByteArray data = m_listReply->readAll(); const QStringList lines = QString::fromLatin1(data).split(QLatin1Char('\n')); diff --git a/src/plugins/cpaster/cpasterplugin.cpp b/src/plugins/cpaster/cpasterplugin.cpp index a86cafbdc7d..99571f0b462 100644 --- a/src/plugins/cpaster/cpasterplugin.cpp +++ b/src/plugins/cpaster/cpasterplugin.cpp @@ -313,7 +313,7 @@ void CodepasterPlugin::finishPost(const QString &link) { if (m_settings->copyToClipboard) QApplication::clipboard()->setText(link); - ICore::messageManager()->printToOutputPane(link, m_settings->displayOutput); + ICore::messageManager()->printToOutputPane(link, m_settings->displayOutput ? Core::MessageManager::ModeSwitch : Core::MessageManager::Silent); } // Extract the characters that can be used for a file name from a title @@ -356,11 +356,11 @@ void CodepasterPlugin::finishFetch(const QString &titleDescription, Core::MessageManager *messageManager = ICore::messageManager(); // Failure? if (error) { - messageManager->printToOutputPane(content, true); + messageManager->printToOutputPane(content, Core::MessageManager::NoModeSwitch); return; } if (content.isEmpty()) { - messageManager->printToOutputPane(tr("Empty snippet received for \"%1\".").arg(titleDescription), true); + messageManager->printToOutputPane(tr("Empty snippet received for \"%1\".").arg(titleDescription), Core::MessageManager::NoModeSwitch); return; } // If the mime type has a preferred suffix (cpp/h/patch...), use that for @@ -379,7 +379,7 @@ void CodepasterPlugin::finishFetch(const QString &titleDescription, saver.setAutoRemove(false); saver.write(byteContent); if (!saver.finalize()) { - messageManager->printToOutputPane(saver.errorString()); + messageManager->printToOutputPane(saver.errorString(), Core::MessageManager::NoModeSwitch); return; } const QString fileName = saver.fileName(); diff --git a/src/plugins/cpaster/fileshareprotocol.cpp b/src/plugins/cpaster/fileshareprotocol.cpp index 50367c04dc0..560bf033da1 100644 --- a/src/plugins/cpaster/fileshareprotocol.cpp +++ b/src/plugins/cpaster/fileshareprotocol.cpp @@ -209,11 +209,11 @@ void FileShareProtocol::paste(const QString &text, saver.setResult(&writer); } if (!saver.finalize()) { - Core::ICore::messageManager()->printToOutputPanePopup(saver.errorString()); + Core::ICore::messageManager()->printToOutputPane(saver.errorString(), Core::MessageManager::NoModeSwitch); return; } const QString msg = tr("Pasted: %1").arg(saver.fileName()); - Core::ICore::messageManager()->printToOutputPanePopup(msg); + Core::ICore::messageManager()->printToOutputPane(msg, Core::MessageManager::NoModeSwitch); } } // namespace CodePaster