summaryrefslogtreecommitdiff
path: root/src/plugins/perforce/settingspage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/perforce/settingspage.cpp')
-rw-r--r--src/plugins/perforce/settingspage.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/plugins/perforce/settingspage.cpp b/src/plugins/perforce/settingspage.cpp
index 4695b03503..0a0239443a 100644
--- a/src/plugins/perforce/settingspage.cpp
+++ b/src/plugins/perforce/settingspage.cpp
@@ -67,7 +67,7 @@ void SettingsPageWidget::slotTest()
setStatusText(tr("Testing..."));
const Settings s = settings();
- m_checker->start(s.p4Command, s.commonP4Arguments(), 10000);
+ m_checker->start(s.p4BinaryPath, s.commonP4Arguments(), 10000);
}
void SettingsPageWidget::testSucceeded(const QString &repo)
@@ -78,7 +78,8 @@ void SettingsPageWidget::testSucceeded(const QString &repo)
Settings SettingsPageWidget::settings() const
{
Settings settings;
- settings.p4Command = m_ui.pathChooser->path();
+ settings.p4Command = m_ui.pathChooser->rawPath();
+ settings.p4BinaryPath = m_ui.pathChooser->path();
settings.defaultEnv = !m_ui.environmentGroupBox->isChecked();
settings.p4Port = m_ui.portLineEdit->text();
settings.p4User = m_ui.userLineEdit->text();