forked from qt-creator/qt-creator
Do not pop up general messages pane
General messages pane should only be opened on direct user interaction. Task-number: QTCREATORBUG-24430 Change-Id: Ib4c72b1bb07c27aabc74eb62c56061d5548b677d Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -191,7 +191,7 @@ void BeautifierPluginPrivate::autoFormatOnSave(Core::IDocument *document)
|
|||||||
|
|
||||||
void BeautifierPlugin::showError(const QString &error)
|
void BeautifierPlugin::showError(const QString &error)
|
||||||
{
|
{
|
||||||
Core::MessageManager::write(tr("Error in Beautifier: %1").arg(error.trimmed()));
|
Core::MessageManager::writeFlashing(tr("Error in Beautifier: %1").arg(error.trimmed()));
|
||||||
}
|
}
|
||||||
|
|
||||||
QString BeautifierPlugin::msgCannotGetConfigurationFile(const QString &command)
|
QString BeautifierPlugin::msgCannotGetConfigurationFile(const QString &command)
|
||||||
|
@@ -59,8 +59,8 @@ static QString runExecutable(const Utils::CommandLine &commandLine,
|
|||||||
if (response.result != SynchronousProcessResponse::Finished
|
if (response.result != SynchronousProcessResponse::Finished
|
||||||
&& (failSilently == FailSilently::No
|
&& (failSilently == FailSilently::No
|
||||||
|| response.result != SynchronousProcessResponse::FinishedError)) {
|
|| response.result != SynchronousProcessResponse::FinishedError)) {
|
||||||
Core::MessageManager::write(response.exitMessage(commandLine.toUserOutput(), 10));
|
Core::MessageManager::writeFlashing(response.exitMessage(commandLine.toUserOutput(), 10));
|
||||||
Core::MessageManager::write(QString::fromUtf8(response.allRawOutput()));
|
Core::MessageManager::writeFlashing(QString::fromUtf8(response.allRawOutput()));
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -155,7 +155,7 @@ bool ImageView::exportSvg(const ExportData &ed)
|
|||||||
.arg(QDir::toNativeSeparators(ed.fileName))
|
.arg(QDir::toNativeSeparators(ed.fileName))
|
||||||
.arg(ed.size.width()).arg(ed.size.height())
|
.arg(ed.size.width()).arg(ed.size.height())
|
||||||
.arg(QFileInfo(ed.fileName).size());
|
.arg(QFileInfo(ed.fileName).size());
|
||||||
Core::MessageManager::write(message);
|
Core::MessageManager::writeDisrupting(message);
|
||||||
} else {
|
} else {
|
||||||
const QString message = tr("Could not write file \"%1\".").arg(QDir::toNativeSeparators(ed.fileName));
|
const QString message = tr("Could not write file \"%1\".").arg(QDir::toNativeSeparators(ed.fileName));
|
||||||
QMessageBox::critical(this, tr("Export Image"), message);
|
QMessageBox::critical(this, tr("Export Image"), message);
|
||||||
|
Reference in New Issue
Block a user