Commit 8ada592f authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Orgad Shaneh

Valgrind: Use a filter for XML files

Change-Id: Id99b5c06eedd014e5845a1b4642901e4b222090a
Reviewed-by: default avatarNikolai Kosjar <nikolai.kosjar@digia.com>
parent 5f61d916
......@@ -936,8 +936,11 @@ void CallgrindToolPrivate::slotRequestDump()
void CallgrindToolPrivate::loadExternalXmlLogFile()
{
const QString filePath = QFileDialog::getOpenFileName(Core::ICore::mainWindow(),
tr("Open Callgrind XML Log File"));
const QString filePath = QFileDialog::getOpenFileName(
Core::ICore::mainWindow(),
tr("Open Callgrind XML Log File"),
QString(),
tr("XML Files (*.xml);;All Files (*)"));
if (filePath.isEmpty())
return;
......
......@@ -487,8 +487,11 @@ void MemcheckTool::suppressionActionTriggered()
void MemcheckTool::loadExternalXmlLogFile()
{
const QString filePath = QFileDialog::getOpenFileName(Core::ICore::mainWindow(),
tr("Open Memcheck XML Log File"));
const QString filePath = QFileDialog::getOpenFileName(
Core::ICore::mainWindow(),
tr("Open Memcheck XML Log File"),
QString(),
tr("XML Files (*.xml);;All Files (*)"));
if (filePath.isEmpty())
return;
......
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