summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--qt-ui/mainwindow.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp
index ac7981019..80f9fc9f1 100644
--- a/qt-ui/mainwindow.cpp
+++ b/qt-ui/mainwindow.cpp
@@ -107,13 +107,14 @@ MainWindow::MainWindow() : QMainWindow(),
profLayout->addWidget(toolBar);
profLayout->addWidget(profileWidget);
profileContainer->setLayout(profLayout);
-
+ DivePictureWidget *divePictures = new DivePictureWidget(this);
+ divePictures->setModel(DivePictureModel::instance());
registerApplicationState("Default", mainTab, profileContainer, diveListView, globeGps );
registerApplicationState("AddDive", mainTab, profileContainer, diveListView, globeGps );
registerApplicationState("EditDive", mainTab, profileContainer, diveListView, globeGps );
registerApplicationState("PlanDive", plannerWidget, profileContainer, plannerSettings, plannerDetails );
registerApplicationState("EditPlannedDive", plannerWidget, profileContainer, diveListView, globeGps );
- registerApplicationState("EditDiveSite",locationInformation, profileContainer, diveListView, globeGps );
+ registerApplicationState("EditDiveSite",locationInformation, divePictures, diveListView, globeGps );
setApplicationState("Default");