mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Dive site: un-globalize displayed_dive_site
The global object displayed_dive_site is used a a backing-store by the dive-site-edit widget. All external accesses were removed, therefore make the object local to the widget. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
954820aa81
commit
5d3967ce84
4 changed files with 4 additions and 3 deletions
|
@ -3,6 +3,7 @@
|
|||
#define LOCATIONINFORMATION_H
|
||||
|
||||
#include "core/units.h"
|
||||
#include "core/divesite.h"
|
||||
#include "ui_locationInformation.h"
|
||||
#include "qt-models/divelocationmodel.h"
|
||||
#include <stdint.h>
|
||||
|
@ -50,6 +51,7 @@ private:
|
|||
bool modified;
|
||||
QAction *acceptAction, *rejectAction;
|
||||
GPSLocationInformationModel filter_model;
|
||||
dive_site displayed_dive_site;
|
||||
};
|
||||
|
||||
class DiveLocationFilterProxyModel : public QSortFilterProxyModel {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue