--- infoscreen/MainView.cpp 2010/06/21 13:53:17 870 +++ infoscreen/MainView.cpp 2010/06/22 20:30:17 874 @@ -32,8 +32,6 @@ if (currentMode == ModeSimpleWeb){ qDebug() << "Starting plain browser mode"; - web->setVisible(true); - web->start(url,screenid); } if (currentMode == ModeLocal ) { @@ -68,13 +66,16 @@ layout->setContentsMargins(0,0,0,0); setLayout(layout); - - if (currentMode == ModeXml || currentMode == ModeLocal) { - qDebug() << "Starting timer..."; - timer = new QTimer(this); - connect(timer, SIGNAL(timeout() ), this, SLOT(onTimer() )); - timer->start(100); + if (currentMode == ModeSimpleWeb) { + web->setVisible(true); + web->start(url,screenid); } + + + qDebug() << "Starting timer..."; + timer = new QTimer(this); + connect(timer, SIGNAL(timeout() ), this, SLOT(onTimer() )); + timer->start(100); } void MainView::loadSettings() @@ -139,7 +140,9 @@ readXml(); } - switchScreens(); + if (currentMode == ModeXml || currentMode == ModeLocal) { + switchScreens(); + } }