subsurface/desktop-widgets
Berthold Stoeger f27d440bb3 Dive site: don't emit divesChanged signals when editing dive site
When editing the dive site, for certain fields a divesChanged signal
was emitted so that the dive-list can be updated.

Arguably it is wrong to decide which fields are relevant to the
dive list in the undo-command code. Therefore, let the list
catch the dive-site-edited signal and decide itself.

But the actual reason for this commit is that if the dive-site
field of a dive changes, we might have to reload the dive-location-model
because suddenly a new dive site appears. Now if this is done
in QML context on some Qt version (notably 5.9) we get crashes
later on. But that can happen if the user moves a flag. So in that
case only send a diveSiteChanged signal.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
2019-09-06 11:48:47 -07:00
..
css
preferences Cleanup: move error reporting function declarations to errorhelper.h 2019-08-08 16:26:30 -07:00
statistics
tab-widgets Cleanup: remove TabDiveSite::updateFilter() function 2019-09-06 11:48:47 -07:00
about.cpp update year to 2019 in about screens 2019-01-02 09:45:01 -08:00
about.h
about.ui
btdeviceselectiondialog.cpp Cleanup: remove unnecessary QRegularExpression copies 2019-06-06 14:52:42 +03:00
btdeviceselectiondialog.h
btdeviceselectiondialog.ui Desktop: add checkbox to show all BT devices 2019-02-14 09:05:58 -08:00
CMakeLists.txt Create DivesiteImportDialog to select sites to import 2019-05-06 10:48:44 +02:00
command.cpp Undo: make editing of dive number undoable 2019-07-19 21:44:13 -07:00
command.h Undo: make editing of dive number undoable 2019-07-19 21:44:13 -07:00
command_base.cpp Undo: hide multi-dive-edit warning message on subsequent edit 2019-06-15 11:20:49 -07:00
command_base.h Cleanup: move trip-related functions into own translation unit 2019-06-19 13:11:10 -07:00
command_divelist.cpp Dive merge: don't use unset dive numbers 2019-06-28 20:23:01 +09:00
command_divelist.h Cleanup: remove selectionChanged logic from dive-list commands 2019-06-23 20:08:46 +02:00
command_divesite.cpp Dive site: don't emit divesChanged signals when editing dive site 2019-09-06 11:48:47 -07:00
command_divesite.h Add undo/redo commands for importing dive sites 2019-05-06 10:48:44 +02:00
command_edit.cpp Desktop: fix crash on copy & paste 2019-08-24 14:00:06 -07:00
command_edit.h Undo: make editing of dive number undoable 2019-07-19 21:44:13 -07:00
command_edit_trip.cpp Undo: use QUndoStack::isClean() to determine unsaved changes 2019-04-12 18:19:07 +03:00
command_edit_trip.h Undo: implement undo of dive trip editing 2019-04-12 18:19:07 +03:00
command_private.cpp Cleanup: unify selection signals 2019-06-23 20:08:46 +02:00
command_private.h Cleanup: remove selectionChanged logic from dive-list commands 2019-06-23 20:08:46 +02:00
configuredivecomputerdialog.cpp
configuredivecomputerdialog.h
configuredivecomputerdialog.ui
divecomponentselection.ui Add various enhancements to profile export and dive data copy 2019-02-07 16:06:43 +01:00
divecomputermanagementdialog.cpp
divecomputermanagementdialog.h Cleanup: fold DiveComputerManagementDialog::update() into init() 2018-06-17 06:53:13 +09:00
divecomputermanagementdialog.ui
divelistview.cpp Map: highlight correct dive sites in dive site mode 2019-09-06 11:48:47 -07:00
divelistview.h Cleanup: unify selection signals 2019-06-23 20:08:46 +02:00
divelogexportdialog.cpp Cleanup: move file-related function declarations to file.h 2019-08-08 16:26:31 -07:00
divelogexportdialog.h Add various enhancements to profile export and dive data copy 2019-02-07 16:06:43 +01:00
divelogexportdialog.ui Add export option to export dive sites. 2019-04-13 08:18:32 -07:00
divelogimportdialog.cpp Cleanup: move trip-related functions into own translation unit 2019-06-19 13:11:10 -07:00
divelogimportdialog.h
divelogimportdialog.ui
divepicturewidget.cpp
divepicturewidget.h
diveplanner.cpp Implement height-to-pressure functions in planner 2019-05-17 09:46:05 +02:00
diveplanner.h Planner: Add checkbox to force OC bailout 2019-01-13 15:02:07 -08:00
diveplanner.ui
diveshareexportdialog.cpp
diveshareexportdialog.h
diveshareexportdialog.ui
divesiteimportdialog.cpp Create DivesiteImportDialog to select sites to import 2019-05-06 10:48:44 +02:00
divesiteimportdialog.h Create DivesiteImportDialog to select sites to import 2019-05-06 10:48:44 +02:00
divesiteimportdialog.ui Create DivesiteImportDialog to select sites to import 2019-05-06 10:48:44 +02:00
downloadfromdivecomputer.cpp Fix broken windows build with latest MXE 2019-08-29 12:55:25 -07:00
downloadfromdivecomputer.h Fix broken windows build with latest MXE 2019-08-29 12:55:25 -07:00
downloadfromdivecomputer.ui
filterwidget2.cpp Turn application state into enum 2019-05-12 12:33:55 -07:00
filterwidget2.h Filter: call update title directly in filter model 2019-04-12 18:19:07 +03:00
filterwidget2.ui Desktop: correct tooltip for filter close button 2019-07-29 07:24:05 +02:00
findmovedimagesdialog.cpp Desktop: fix another variable name conflict 2019-03-18 19:40:32 -07:00
findmovedimagesdialog.h
findmovedimagesdialog.ui
groupedlineedit.cpp
groupedlineedit.h
kmessagewidget.cpp Add SPDX header to desktop widgets 2017-04-29 13:32:55 -07:00
kmessagewidget.h
listfilter.ui Start to implement a simplified version of the filter widget 2018-12-14 01:05:18 +08:00
locationinformation.cpp Cleanup: remove DiveLocationLineEdit::currType 2019-07-04 10:41:09 +09:00
locationinformation.h Cleanup: remove DiveLocationLineEdit::currType 2019-07-04 10:41:09 +09:00
locationinformation.ui Dive site: add proximity field to dive site list 2019-04-12 18:19:07 +03:00
mainwindow.cpp Map: don't fully reset model on selection change 2019-09-06 11:48:47 -07:00
mainwindow.h Cleanup: move error reporting function declarations to errorhelper.h 2019-08-08 16:26:30 -07:00
mainwindow.ui Reword configure dive computer 2019-06-03 19:55:19 +02:00
mapwidget.cpp Desktop: show all selected dive sites on click 2019-09-06 11:48:47 -07:00
mapwidget.h Desktop: show all selected dive sites on click 2019-09-06 11:48:47 -07:00
modeldelegates.cpp Dive site: show distance to current dive using extra data 2019-05-11 12:35:11 -07:00
modeldelegates.h Dive site: show distance to current dive using extra data 2019-05-11 12:35:11 -07:00
notificationwidget.cpp
notificationwidget.h
plannerDetails.ui
plannerSettings.ui Add UI element for final surface segment in planner 2019-03-29 06:51:12 -07:00
printdialog.cpp Drop old filter code 2018-12-14 01:05:18 +08:00
printdialog.h
printer.cpp Cleanup: small coding style fixes 2019-05-15 07:42:14 -07:00
printer.h Remove partial support for QWebEngine 2019-03-20 08:45:02 -07:00
printoptions.cpp replace deprecated qSort() with std::sort() 2019-04-12 12:59:17 +03:00
printoptions.h Cleanup: remove all Q_NULLPTR instances 2019-04-02 07:34:46 -07:00
printoptions.ui
qtwaitingspinner.cpp
qtwaitingspinner.h
renumber.ui
searchbar.ui
setpoint.ui
shiftimagetimes.ui
shifttimes.ui
simplewidgets.cpp Core: dynamically resize weight table 2019-07-18 06:01:07 -07:00
simplewidgets.h Cleanup: remove Q_PROPERTYs from MinMaxWidget 2019-06-10 17:59:35 +03:00
starwidget.cpp
starwidget.h
subsurfacewebservices.cpp Cleanup: move file-related function declarations to file.h 2019-08-08 16:26:31 -07:00
subsurfacewebservices.h
tableview.cpp
tableview.h
tableview.ui
tagwidget.cpp Desktop: remove edit-check in tag-widget completer 2019-04-14 03:38:22 +12:00
tagwidget.h Undo: implement undo of tag editing 2019-04-12 18:19:07 +03:00
templateedit.cpp Warnings: replace memcpy by assignment 2018-11-19 13:51:03 -08:00
templateedit.h
templateedit.ui
templatelayout.cpp Cleanup: turn CylinderObjectHelper into value type 2019-08-22 10:13:40 -07:00
templatelayout.h Cleanup: turn CylinderObjectHelper into value type 2019-08-22 10:13:40 -07:00
textedit.cpp Desktop: create new custom TextEdit widget for notes-field 2019-04-12 18:19:07 +03:00
textedit.h Desktop: create new custom TextEdit widget for notes-field 2019-04-12 18:19:07 +03:00
updatemanager.cpp core: move updatecheck to its own domain 2019-02-09 10:37:55 -08:00
updatemanager.h
urldialog.ui
usermanual.cpp Coding style: remove Java-style function definition 2019-04-12 18:19:07 +03:00
usermanual.h Remove partial support for QWebEngine 2019-03-20 08:45:02 -07:00
usersurvey.cpp Revert "desktop-widgets: remove QSettings from desktop-widgets" 2018-08-29 03:09:10 -07:00
usersurvey.h
usersurvey.ui
webservices.ui