From c21de407cc09c4fc96b203e18e77bf8fc222b5ff Mon Sep 17 00:00:00 2001 From: "craig.p.drummond" Date: Mon, 24 Jun 2013 18:48:39 +0000 Subject: [PATCH] Hide HTTP server settings if we only have 1 active network connection (well 2 if you include loopback :-) ) --- ChangeLog | 5 ++--- http/httpserversettings.cpp | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 4eeb35ac5..6d74021d4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -8,9 +8,8 @@ 4. Add option (to sidebar context menu) to toggle usage of monochrome icons. 5. After ripping a CD, prompt as to whether to calculate ReplyGain. 6. Simplify HTTP server settings. Now only the interface can be chosen. HTTP - server is used for all non-MPD files. If computer has no active network - connection (e.g. lo is the only interface), then the HTTP server settings - page is hidden. + server is used for all non-MPD files. If computer has no, or only one, + active network connection, then the HTTP server settings page is hidden. 7. Only show actions on mouse-over. 8. Use larger action icons in icon view when we have larger previews. 9. Better non-monochrome radio-stream icons. Thanks to Grely diff --git a/http/httpserversettings.cpp b/http/httpserversettings.cpp index 04eec7e01..405604595 100644 --- a/http/httpserversettings.cpp +++ b/http/httpserversettings.cpp @@ -80,7 +80,7 @@ void HttpServerSettings::load() bool HttpServerSettings::haveMultipleInterfaces() const { - return httpInterface->count()>2; + return httpInterface->count()>3; } void HttpServerSettings::save()