Origin commit data
------------------
Commit: d065c1f394
Author: vanhofen <vanhofen@gmx.de>
Date: 2016-11-21 (Mon, 21 Nov 2016)
This commit is contained in:
vanhofen
2016-11-21 00:14:20 +01:00
22 changed files with 160 additions and 71 deletions

View File

@@ -249,19 +249,19 @@ bool CUpnpBrowserGui::discoverDevices()
if (!m_devices.empty())
return true;
CHintBox *scanBox = new CHintBox(LOCALE_MESSAGEBOX_INFO, g_Locale->getText(LOCALE_UPNPBROWSER_SCANNING)); // UTF-8
scanBox->paint();
CHintBox hintbox(LOCALE_MESSAGEBOX_INFO, g_Locale->getText(LOCALE_UPNPBROWSER_SCANNING)); // UTF-8
hintbox.paint();
try {
m_devices = m_socket->Discover("urn:schemas-upnp-org:service:ContentDirectory:1");
}
catch (std::runtime_error error)
{
delete scanBox;
hintbox.hide();
DisplayErrorMessage(error.what());
return false;
}
delete scanBox;
hintbox.hide();
if (m_devices.empty())
{
DisplayInfoMessage(g_Locale->getText(LOCALE_UPNPBROWSER_NOSERVERS));