forked from qt-creator/qt-creator
Utils: Replace FileChooser::path() by filePath().toString()
Keep the old method for now to ease downstream porting. The change is kept mechanical, there's a lot of cleanup possible now on the user code side. Change-Id: I936baedd45b7ba057f1c789a1bec896886f48eff Reviewed-by: André Hartmann <aha_1980@gmx.de> Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user