diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2018-08-27 20:07:38 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-08-31 07:48:23 -0700 |
commit | b1fb578eb945c8add71f32dde1cdfc161c63d16c (patch) | |
tree | acefd3179e25ed0947c3ea780fd71c86b45f7dc1 /desktop-widgets/tab-widgets | |
parent | 554a7aaba4ad1a65a68a7d3e6f8aeece548351b9 (diff) | |
download | subsurface-b1fb578eb945c8add71f32dde1cdfc161c63d16c.tar.gz |
Filter: remove diveSiteAdded signal of MainTab
Signals can be useful. In this case, a simple function call does
it. Thus, remove the signal. It can be readded later at an more
appropriate place.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'desktop-widgets/tab-widgets')
-rw-r--r-- | desktop-widgets/tab-widgets/maintab.cpp | 3 | ||||
-rw-r--r-- | desktop-widgets/tab-widgets/maintab.h | 1 |
2 files changed, 1 insertions, 3 deletions
diff --git a/desktop-widgets/tab-widgets/maintab.cpp b/desktop-widgets/tab-widgets/maintab.cpp index 0f95e15ac..cb186db02 100644 --- a/desktop-widgets/tab-widgets/maintab.cpp +++ b/desktop-widgets/tab-widgets/maintab.cpp @@ -211,7 +211,6 @@ MainTab::MainTab(QWidget *parent) : QTabWidget(parent), connect(ui.diveNotesMessage, &KMessageWidget::showAnimationFinished, ui.location, &DiveLocationLineEdit::fixPopupPosition); - connect(this, SIGNAL(diveSiteAdded(const QString &)), LocationFilterModel::instance(), SLOT(addName(const QString &))); // enable URL clickability in notes: new TextHyperlinkEventFilter(ui.notes);//destroyed when ui.notes is destroyed @@ -739,7 +738,7 @@ uint32_t MainTab::updateDiveSite(uint32_t pickedUuid, int divenr) QString name = ui.location->text().isEmpty() ? tr("New dive site") : ui.location->text(); pickedUuid = create_dive_site(qPrintable(name), displayed_dive.when); createdNewDive = true; - emit diveSiteAdded(name); + LocationFilterModel::instance()->addName(name); } newDs = get_dive_site_by_uuid(pickedUuid); diff --git a/desktop-widgets/tab-widgets/maintab.h b/desktop-widgets/tab-widgets/maintab.h index ec060081f..31e3d14b0 100644 --- a/desktop-widgets/tab-widgets/maintab.h +++ b/desktop-widgets/tab-widgets/maintab.h @@ -60,7 +60,6 @@ signals: void addDiveFinished(); void dateTimeChanged(); void diveSiteChanged(struct dive_site * ds); - void diveSiteAdded(const QString &); public slots: void addCylinder_clicked(); |