mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Correctly update the dive when the user edits dive_site
We didn't correctly update the dive site as soon as the dive_site edit finished, and this time we are actually correctly updating things using signals instead of calling the mainwindow for everything. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
7834341562
commit
9130ff8a97
3 changed files with 11 additions and 0 deletions
|
@ -114,6 +114,9 @@ MainWindow::MainWindow() : QMainWindow(),
|
|||
connect(diveSiteEdit, &LocationInformationWidget::endEditDiveSite,
|
||||
this, &MainWindow::setDefaultState);
|
||||
|
||||
connect(diveSiteEdit, &LocationInformationWidget::endEditDiveSite,
|
||||
mainTab, &MainTab::refreshDiveInfo);
|
||||
|
||||
QWidget *diveSitePictures = new QWidget(); // Placeholder
|
||||
|
||||
registerApplicationState("Default", mainTab, profileContainer, diveListView, globeGps );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue