Removed UI properties from FacebookAuthentication class and moved them to MainWindow fb_auth_window_removal
authorlampehe-local <henri.lampela@ixonos.com>
Wed, 12 May 2010 13:19:36 +0000 (16:19 +0300)
committerlampehe-local <henri.lampela@ixonos.com>
Wed, 12 May 2010 13:19:36 +0000 (16:19 +0300)
Reviewed by: Kaj Wallin

src/engine/engine.cpp
src/ui/mainwindow.cpp

index 37362eb..15758d8 100644 (file)
@@ -103,7 +103,6 @@ void SituareEngine::loginProcessCancelled()
 {
     qDebug() << __PRETTY_FUNCTION__;
 
-    m_ui->show();
     m_ui->toggleProgressIndicator(false);
     //ToDo: do something
 }
index 79fd72c..7ec617d 100644 (file)
@@ -46,6 +46,7 @@ MainWindow::MainWindow(QWidget *parent)
     setCentralWidget(m_mapViewScreen);
     createMenus();
     setWindowTitle(tr("Situare"));
+       show();
 
     m_locationDialog = new UpdateLocationDialog(this);
 
@@ -197,7 +198,6 @@ void MainWindow::startLoginProcess(const QUrl &url)
             this, SLOT(loginDialogDone(QString,QString)));
 
     m_webView->hide();
-    this->show();
 
     if(m_loginDialog->exec() != QDialog::Accepted) {
         // if login dialog was canceled we need to stop processing webview