mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Switch components for cut/paste dive to dive site logic
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
99ba2f0687
commit
32da12664d
4 changed files with 30 additions and 41 deletions
|
@ -457,8 +457,7 @@ DiveComponentSelection::DiveComponentSelection(QWidget *parent, struct dive *tar
|
|||
{
|
||||
ui.setupUi(this);
|
||||
what = _what;
|
||||
UI_FROM_COMPONENT(location);
|
||||
UI_FROM_COMPONENT(gps);
|
||||
UI_FROM_COMPONENT(divesite);
|
||||
UI_FROM_COMPONENT(divemaster);
|
||||
UI_FROM_COMPONENT(buddy);
|
||||
UI_FROM_COMPONENT(rating);
|
||||
|
@ -478,8 +477,7 @@ DiveComponentSelection::DiveComponentSelection(QWidget *parent, struct dive *tar
|
|||
void DiveComponentSelection::buttonClicked(QAbstractButton *button)
|
||||
{
|
||||
if (ui.buttonBox->buttonRole(button) == QDialogButtonBox::AcceptRole) {
|
||||
COMPONENT_FROM_UI(location);
|
||||
COMPONENT_FROM_UI(gps);
|
||||
COMPONENT_FROM_UI(divesite);
|
||||
COMPONENT_FROM_UI(divemaster);
|
||||
COMPONENT_FROM_UI(buddy);
|
||||
COMPONENT_FROM_UI(rating);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue