mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
When updating the dive site name, show this on the maintab
If we accept a change on the dive site management screen, it needs to be reflected on the Dive notes tab right away. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
6820b13bd5
commit
f81e2c111d
3 changed files with 8 additions and 0 deletions
|
@ -395,6 +395,11 @@ bool MainTab::isEditing()
|
||||||
return editMode != NONE;
|
return editMode != NONE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void MainTab::showLocation()
|
||||||
|
{
|
||||||
|
ui.location->setText(get_dive_location(&displayed_dive));
|
||||||
|
}
|
||||||
|
|
||||||
void MainTab::updateDiveInfo(bool clear)
|
void MainTab::updateDiveInfo(bool clear)
|
||||||
{
|
{
|
||||||
// don't execute this while adding / planning a dive
|
// don't execute this while adding / planning a dive
|
||||||
|
|
|
@ -93,6 +93,8 @@ slots:
|
||||||
void photoDoubleClicked(const QString filePath);
|
void photoDoubleClicked(const QString filePath);
|
||||||
void removeSelectedPhotos();
|
void removeSelectedPhotos();
|
||||||
void prepareDiveSiteEdit();
|
void prepareDiveSiteEdit();
|
||||||
|
void showLocation();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Ui::MainTab ui;
|
Ui::MainTab ui;
|
||||||
WeightModel *weightModel;
|
WeightModel *weightModel;
|
||||||
|
|
|
@ -114,6 +114,7 @@ MainWindow::MainWindow() : QMainWindow(),
|
||||||
connect(mainTab, SIGNAL(requestDiveSiteEdit(uint32_t)), this, SLOT(enableDiveSiteEdit(uint32_t)));
|
connect(mainTab, SIGNAL(requestDiveSiteEdit(uint32_t)), this, SLOT(enableDiveSiteEdit(uint32_t)));
|
||||||
connect(locationInformation, SIGNAL(informationManagementEnded()), this, SLOT(setDefaultState()));
|
connect(locationInformation, SIGNAL(informationManagementEnded()), this, SLOT(setDefaultState()));
|
||||||
connect(locationInformation, SIGNAL(informationManagementEnded()), this, SLOT(refreshDisplay()));
|
connect(locationInformation, SIGNAL(informationManagementEnded()), this, SLOT(refreshDisplay()));
|
||||||
|
connect(locationInformation, SIGNAL(informationManagementEnded()), information(), SLOT(showLocation()));
|
||||||
|
|
||||||
#ifdef NO_PRINTING
|
#ifdef NO_PRINTING
|
||||||
ui.printPlan->hide();
|
ui.printPlan->hide();
|
||||||
|
|
Loading…
Add table
Reference in a new issue