summaryrefslogtreecommitdiffstats
path: root/desktop-widgets
diff options
context:
space:
mode:
Diffstat (limited to 'desktop-widgets')
-rw-r--r--desktop-widgets/mainwindow.cpp1
-rw-r--r--desktop-widgets/mainwindow.h3
2 files changed, 4 insertions, 0 deletions
diff --git a/desktop-widgets/mainwindow.cpp b/desktop-widgets/mainwindow.cpp
index 356196dad..732425ea7 100644
--- a/desktop-widgets/mainwindow.cpp
+++ b/desktop-widgets/mainwindow.cpp
@@ -205,6 +205,7 @@ MainWindow::MainWindow() : QMainWindow(),
enableDisableCloudActions();
#endif
+ GpsLocation *locationProvider = new GpsLocation(&report_message, this);
ui.mainErrorMessage->hide();
graphics()->setEmptyState();
initialUiSetup();
diff --git a/desktop-widgets/mainwindow.h b/desktop-widgets/mainwindow.h
index adf35686e..e53c1efc9 100644
--- a/desktop-widgets/mainwindow.h
+++ b/desktop-widgets/mainwindow.h
@@ -16,6 +16,7 @@
#include "ui_mainwindow.h"
#include "notificationwidget.h"
#include "windowtitleupdate.h"
+#include "gpslocation.h"
struct DiveList;
class QSortFilterProxyModel;
@@ -93,6 +94,7 @@ public:
NotificationWidget *getNotificationWidget();
void enableDisableCloudActions();
void showError();
+
private
slots:
/* file menu action */
@@ -254,6 +256,7 @@ private:
QHash<QByteArray, PropertiesForQuadrant> stateProperties;
WindowTitleUpdate *wtu;
+ GpsLocation *locationProvider;
};
#endif // MAINWINDOW_H