summaryrefslogtreecommitdiffstats
path: root/qt-ui/maintab.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qt-ui/maintab.cpp')
-rw-r--r--qt-ui/maintab.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp
index 31a94b73a..592157111 100644
--- a/qt-ui/maintab.cpp
+++ b/qt-ui/maintab.cpp
@@ -22,6 +22,7 @@
#include "divecomputerextradatamodel.h"
#include "divelocationmodel.h"
#include "divesite.h"
+#include "locationinformation.h"
#if defined(FBSUPPORT)
#include "socialnetworks.h"
@@ -57,7 +58,7 @@ MainTab::MainTab(QWidget *parent) : QTabWidget(parent),
ui.extraData->setModel(extraDataModel);
closeMessage();
- connect(ui.addDiveSite, SIGNAL(clicked()), this, SIGNAL(requestDiveSiteAdd()));
+ connect(ui.addDiveSite, SIGNAL(clicked()), this, SLOT(showDiveSiteSimpleEdit()));
QAction *action = new QAction(tr("Apply changes"), this);
connect(action, SIGNAL(triggered(bool)), this, SLOT(acceptChanges()));
@@ -237,6 +238,12 @@ void MainTab::setCurrentLocationIndex()
}
}
+void MainTab::showDiveSiteSimpleEdit()
+{
+ SimpleDiveSiteEditDialog dlg(this);
+ dlg.exec();
+}
+
void MainTab::enableGeoLookupEdition()
{
ui.waitingSpinner->stop();