mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Added a new option to edit the dives.
Added a new option to edit the dive in the profile view. The option will only be visible if the dive was manually entered or if the dive is a plan. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
This commit is contained in:
parent
a7b19b251d
commit
69d4ccae6d
4 changed files with 15 additions and 6 deletions
|
@ -280,7 +280,7 @@ void MainWindow::on_actionAddDive_triggered()
|
|||
// now cheat - create one dive that we use to store the info tab data in
|
||||
struct dive *dive = alloc_dive();
|
||||
dive->when = QDateTime::currentMSecsSinceEpoch() / 1000L;
|
||||
const char* model = strdup(tr("manulaly added dive").toLocal8Bit().constData());
|
||||
const char* model = strdup(tr("manually added dive").toLocal8Bit().constData());
|
||||
dive->dc.model = model; // do not use tr here since it expects a char*.
|
||||
record_dive(dive);
|
||||
select_dive(get_divenr(dive));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue