summaryrefslogtreecommitdiff
path: root/src/plugins/debugger/unstartedappwatcherdialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/debugger/unstartedappwatcherdialog.cpp')
-rw-r--r--src/plugins/debugger/unstartedappwatcherdialog.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/debugger/unstartedappwatcherdialog.cpp b/src/plugins/debugger/unstartedappwatcherdialog.cpp
index c27ff5f72e..2ef8c67588 100644
--- a/src/plugins/debugger/unstartedappwatcherdialog.cpp
+++ b/src/plugins/debugger/unstartedappwatcherdialog.cpp
@@ -121,7 +121,7 @@ UnstartedAppWatcherDialog::UnstartedAppWatcherDialog(QWidget *parent)
if (isLocal(runConfig)) {
resetExecutable->setEnabled(true);
connect(resetExecutable, &QPushButton::clicked, this, [this, runnable] {
- m_pathChooser->setFileName(runnable.executable);
+ m_pathChooser->setFilePath(runnable.executable);
});
}
}
@@ -256,7 +256,7 @@ void UnstartedAppWatcherDialog::startStopTimer(bool start)
void UnstartedAppWatcherDialog::findProcess()
{
- const QString &appName = Utils::FileUtils::normalizePathName(m_pathChooser->path());
+ const QString &appName = Utils::FileUtils::normalizePathName(m_pathChooser->filePath().toString());
DeviceProcessItem fallback;
foreach (const DeviceProcessItem &p, DeviceProcessList::localProcesses()) {
if (Utils::FileUtils::normalizePathName(p.exe) == appName) {
@@ -291,8 +291,8 @@ void UnstartedAppWatcherDialog::kitChanged()
bool UnstartedAppWatcherDialog::checkExecutableString() const
{
- if (!m_pathChooser->path().isEmpty()) {
- QFileInfo fileInfo(m_pathChooser->path());
+ if (!m_pathChooser->filePath().toString().isEmpty()) {
+ QFileInfo fileInfo(m_pathChooser->filePath().toString());
return (fileInfo.exists() && fileInfo.isFile());
}
return false;