OSDN Git Service

remove dead code
authorOswald Buddenhagen <oswald.buddenhagen@nokia.com>
Wed, 6 Oct 2010 12:35:03 +0000 (14:35 +0200)
committerOswald Buddenhagen <oswald.buddenhagen@nokia.com>
Fri, 15 Oct 2010 10:48:27 +0000 (12:48 +0200)
Reviewed-by: hunger
src/plugins/projectexplorer/customexecutablerunconfiguration.cpp

index 56803bd..8b523f7 100644 (file)
@@ -270,17 +270,11 @@ void CustomExecutableConfigurationWidget::termToggled(bool on)
 
 void CustomExecutableConfigurationWidget::changed()
 {
-    const QString &executable = m_runConfiguration->rawExecutable();
-    QString text = tr("No Executable specified.");
-    if (!executable.isEmpty())
-        text = tr("Running executable: <b>%1</b> %2").
-               arg(executable,
-                   Utils::Environment::joinArgumentList(m_runConfiguration->commandLineArguments()));
-
     // We triggered the change, don't update us
     if (m_ignoreChange)
         return;
-    m_executableChooser->setPath(executable);
+
+    m_executableChooser->setPath(m_runConfiguration->rawExecutable());
     m_commandLineArgumentsLineEdit->setText(Utils::Environment::joinArgumentList(m_runConfiguration->baseCommandLineArguments()));
     m_workingDirectory->setPath(m_runConfiguration->baseWorkingDirectory());
     m_useTerminalCheck->setChecked(m_runConfiguration->runMode() == LocalApplicationRunConfiguration::Console);