Have the runtime check in a loop to see if the app server is up before

opening the browser window.
This commit is contained in:
Dave Page
2013-10-04 18:16:31 +01:00
parent e120c43663
commit b022e5d347
5 changed files with 86 additions and 12 deletions

View File

@@ -32,10 +32,9 @@
// Constructor
BrowserWindow::BrowserWindow(quint16 port)
BrowserWindow::BrowserWindow(QString url)
{
// Setup the URL the browser will connect to
m_appServerUrl = QString("http://localhost:%1").arg(port);
m_appServerUrl = url;
// Setup the UI
createActions();
@@ -54,7 +53,7 @@ BrowserWindow::BrowserWindow(quint16 port)
// Display the app
m_initialLoad = true;
m_loadAttempt = 1;
webView->setUrl(QString("http://localhost/:%1").arg(9876));
webView->setUrl(m_appServerUrl);
}