diff --git a/src/plugins/projectexplorer/customexecutableconfigurationwidget.cpp b/src/plugins/projectexplorer/customexecutableconfigurationwidget.cpp index 09e426790968ec2dab63c5f774b12c857b348298..ab69b21e35c9ad03e246b895160cdfec27aff618 100644 --- a/src/plugins/projectexplorer/customexecutableconfigurationwidget.cpp +++ b/src/plugins/projectexplorer/customexecutableconfigurationwidget.cpp @@ -54,21 +54,6 @@ namespace ProjectExplorer { namespace Internal { -class CustomDirectoryPathChooser : public Utils::PathChooser -{ -public: - CustomDirectoryPathChooser(QWidget *parent) - : Utils::PathChooser(parent) - { - } - virtual bool validatePath(const QString &path, QString *errorMessage = 0) - { - Q_UNUSED(path) - Q_UNUSED(errorMessage) - return true; - } -}; - CustomExecutableConfigurationWidget::CustomExecutableConfigurationWidget(CustomExecutableRunConfiguration *rc) : m_ignoreChange(false), m_runConfiguration(rc) { @@ -85,8 +70,8 @@ CustomExecutableConfigurationWidget::CustomExecutableConfigurationWidget(CustomE m_commandLineArgumentsLineEdit->setMinimumWidth(200); // this shouldn't be fixed here... layout->addRow(tr("Arguments:"), m_commandLineArgumentsLineEdit); - m_workingDirectory = new CustomDirectoryPathChooser(this); - m_workingDirectory->setExpectedKind(Utils::PathChooser::ExistingDirectory); + m_workingDirectory = new Utils::PathChooser(this); + m_workingDirectory->setExpectedKind(Utils::PathChooser::Directory); m_workingDirectory->setBaseDirectory(rc->target()->project()->projectDirectory()); m_workingDirectory->setEnvironment(rc->environment()); layout->addRow(tr("Working directory:"), m_workingDirectory);