From 1fc055be32f72e1011f7fe5170594e3a76051eaf Mon Sep 17 00:00:00 2001 From: Kevin Smith <git@kismith.co.uk> Date: Wed, 12 Dec 2012 21:34:47 +0000 Subject: Don't show '1' as the port for the BOSH proxy when opening the connection settings dialog for an existing configuration Change-Id: I3def639fbcc640c210a9c9afab967b4843397059 diff --git a/Swift/QtUI/QtConnectionSettingsWindow.cpp b/Swift/QtUI/QtConnectionSettingsWindow.cpp index 2da527a..737a79c 100644 --- a/Swift/QtUI/QtConnectionSettingsWindow.cpp +++ b/Swift/QtUI/QtConnectionSettingsWindow.cpp @@ -95,7 +95,9 @@ QtConnectionSettingsWindow::QtConnectionSettingsWindow(const ClientOptions& opti if (!options.boshHTTPConnectProxyURL.isEmpty()) { ui.bosh_manualProxy->setChecked(true); ui.bosh_manualProxyHost->setText(P2QSTRING(options.boshHTTPConnectProxyURL.getHost())); - ui.bosh_manualProxyPort->setText(P2QSTRING(boost::lexical_cast<std::string>(options.boshHTTPConnectProxyURL.getPort()))); + if (options.boshHTTPConnectProxyURL.getPort()) { + ui.bosh_manualProxyPort->setText(P2QSTRING(boost::lexical_cast<std::string>(*options.boshHTTPConnectProxyURL.getPort()))); + } } } } -- cgit v0.10.2-6-g49f6