m_crosshair(0),
m_fullScreenButton(0),
m_indicatorButtonPanel(0),
- m_mapScale(0),
- m_updateLocationController(0)
+ m_mapScale(0)
{
qDebug() << __PRETTY_FUNCTION__;
#ifdef Q_WS_MAEMO_5
setAttribute(Qt::WA_Maemo5StackedWindow);
#endif
+
+ m_updateLocationController = new UpdateLocation(this);
+
+ connect(this, SIGNAL(updateWasSuccessful()), m_updateLocationController, SLOT(clear()));
+ connect(m_updateLocationController, SIGNAL(locationUpdate(QString,bool)),
+ this, SIGNAL(locationUpdate(QString,bool)));
}
MainWindow::~MainWindow()
{
qDebug() << __PRETTY_FUNCTION__;
- if (!m_updateLocationController) {
- m_updateLocationController = new UpdateLocation(this);
- if (!m_updateLocationController)
- return;
- else
- connect(this, SIGNAL(updateWasSuccessful()), m_updateLocationController, SLOT(clear()));
- connect(m_updateLocationController, SIGNAL(locationUpdate(QString,bool)),
- this, SIGNAL(locationUpdate(QString,bool)));
- }
-
UpdateLocationDialog *updateLocationDialog
= new UpdateLocationDialog(m_updateLocationController, this);