forked from qt-creator/qt-creator
Valgrind: Log errors to issues pane instead of popping up a QMessageBox.
Just as informative, but less intrusive and can't introduce event loop problems. Change-Id: I7dec17b1e82ba23340376075125f965017047959 Reviewed-by: hjk <hjk@theqtcompany.com>
This commit is contained in:
@@ -88,7 +88,6 @@
|
||||
#include <QHBoxLayout>
|
||||
#include <QLineEdit>
|
||||
#include <QMenu>
|
||||
#include <QMessageBox>
|
||||
#include <QSortFilterProxyModel>
|
||||
#include <QToolBar>
|
||||
#include <QToolButton>
|
||||
@@ -933,8 +932,8 @@ void CallgrindToolPrivate::loadExternalLogFile()
|
||||
|
||||
QFile logFile(filePath);
|
||||
if (!logFile.open(QIODevice::ReadOnly | QIODevice::Text)) {
|
||||
QMessageBox::critical(AnalyzerManager::mainWindow(), tr("Internal Error"),
|
||||
tr("Failed to open file for reading: %1").arg(filePath));
|
||||
AnalyzerUtils::logToIssuesPane(Task::Error,
|
||||
tr("Callgrind: Failed to open file for reading: %1").arg(filePath));
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user