forked from qt-creator/qt-creator
Valgrind: Use FilePath in HeobDialog
Change-Id: I1efa5442791f7655c4c887ea639a7a928d769a28 Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: Hannes Domani <ssbssa@yahoo.de>
This commit is contained in:
@@ -1425,13 +1425,13 @@ void HeobDialog::updateProfile()
|
|||||||
int leakRecording = settings->value(heobLeakRecordingC, 2).toInt();
|
int leakRecording = settings->value(heobLeakRecordingC, 2).toInt();
|
||||||
bool attach = settings->value(heobAttachC, false).toBool();
|
bool attach = settings->value(heobAttachC, false).toBool();
|
||||||
const QString extraArgs = settings->value(heobExtraArgsC).toString();
|
const QString extraArgs = settings->value(heobExtraArgsC).toString();
|
||||||
QString path = settings->value(heobPathC).toString();
|
FilePath path = FilePath::fromVariant(settings->value(heobPathC));
|
||||||
settings->endGroup();
|
settings->endGroup();
|
||||||
|
|
||||||
if (path.isEmpty()) {
|
if (path.isEmpty()) {
|
||||||
const QString heobPath = QStandardPaths::findExecutable("heob32.exe");
|
const QString heobPath = QStandardPaths::findExecutable("heob32.exe");
|
||||||
if (!heobPath.isEmpty())
|
if (!heobPath.isEmpty())
|
||||||
path = QFileInfo(heobPath).path();
|
path = FilePath::fromUserInput(heobPath);
|
||||||
}
|
}
|
||||||
|
|
||||||
m_xmlEdit->setText(xml);
|
m_xmlEdit->setText(xml);
|
||||||
@@ -1444,7 +1444,7 @@ void HeobDialog::updateProfile()
|
|||||||
m_leakRecordingCombo->setCurrentIndex(leakRecording);
|
m_leakRecordingCombo->setCurrentIndex(leakRecording);
|
||||||
m_attachCheck->setChecked(attach);
|
m_attachCheck->setChecked(attach);
|
||||||
m_extraArgsEdit->setText(extraArgs);
|
m_extraArgsEdit->setText(extraArgs);
|
||||||
m_pathChooser->setPath(path);
|
m_pathChooser->setFilePath(path);
|
||||||
}
|
}
|
||||||
|
|
||||||
void HeobDialog::updateEnabled()
|
void HeobDialog::updateEnabled()
|
||||||
|
|||||||
Reference in New Issue
Block a user