diff options
author | Kevin Smith <git@kismith.co.uk> | 2012-12-12 21:34:47 (GMT) |
---|---|---|
committer | Swift Review <review@swift.im> | 2012-12-13 10:14:05 (GMT) |
commit | 1fc055be32f72e1011f7fe5170594e3a76051eaf (patch) | |
tree | 024d449d7e4f611f8ed8f0011c5c49e895d122d0 /Swift/QtUI | |
parent | 279a9d4ab8954b2e8011a9834e73a9f6cc82e178 (diff) | |
download | swift-contrib-1fc055be32f72e1011f7fe5170594e3a76051eaf.zip swift-contrib-1fc055be32f72e1011f7fe5170594e3a76051eaf.tar.bz2 |
Don't show '1' as the port for the BOSH proxy when opening the connection settings dialog for an existing configuration
Change-Id: I3def639fbcc640c210a9c9afab967b4843397059
Diffstat (limited to 'Swift/QtUI')
-rw-r--r-- | Swift/QtUI/QtConnectionSettingsWindow.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
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()))); + } } } } |