subsurface/desktop-widgets
Berthold Stoeger 45395fd466 Dive pictures: Don't plot pictures twice when changing current dive
In MainWindow::current_dive_changed() first plotDive() is called,
which replots all the pictures by calling plotPictures(). This
is pointess, because it plots the pictures of the previous dive.

Then, updateDiveInfo() is called, which resets the dive pictures
and automatically replots them. Thus, switching between dives
both with hundreds of pictures is way slower than necessary.

Switching the plotDive() and updateDiveInfo() calls doesn't work.
The reason is not 100% clear, but it doesn't make sense to plot
pictures of the new dive as long as the profile still shows the
old dive anyway.

As a quick-fix, add a flag to plotDive(), which tells the function
to clear the pictures list instead of redrawing it.
Ultimately, plotDive() should probably be split in two functions.
One for the callers who update the pictures themselves and one
for the others.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
2018-05-17 07:24:54 -07:00
..
css
plugins Cleanup: consistently use toUtf8() instead of toLocal8Bit() 2018-03-14 13:55:36 +02:00
preferences Core: remove dive.h from files that don't need it 2018-05-14 10:13:39 -07:00
statistics
tab-widgets Rename enum dive_comp_type to divemode_t 2018-05-14 23:47:00 +03:00
about.cpp Get ready for 2018 2017-12-30 08:23:22 -08:00
about.h
about.ui Use icons relative path. 2017-11-30 23:14:46 -08:00
btdeviceselectiondialog.cpp Cleanup: Use QString as parameter for [get|save]BtDeviceInfo() 2018-02-26 08:52:34 +01:00
btdeviceselectiondialog.h cleanup: remove unused include 2017-12-23 11:17:47 +01:00
btdeviceselectiondialog.ui Introduce mode field in Bluetooth device selection dialog 2017-11-16 14:26:51 +01:00
CMakeLists.txt map-widget: move the widget and its resources to 'map-widget' 2017-11-05 14:48:56 -08:00
configuredivecomputerdialog.cpp Configure ostc3: Remove obsoleted setting 2018-04-27 21:33:47 +03:00
configuredivecomputerdialog.h
configuredivecomputerdialog.ui Configure ostc3: Remove obsoleted setting 2018-04-27 21:33:47 +03:00
divecomponentselection.ui Use icons relative path. 2017-11-30 23:14:46 -08:00
divecomputermanagementdialog.cpp
divecomputermanagementdialog.h
divecomputermanagementdialog.ui Use icons relative path. 2017-11-30 23:14:46 -08:00
divelistview.cpp Add "Tags" column in Desktop app's dive list view 2018-04-04 14:10:45 +03:00
divelistview.h divelist: prevent a crash for missing column width 2017-10-03 15:43:03 -07:00
divelogexportdialog.cpp Cleanup: consistently use qPrintable() 2018-03-14 13:55:36 +02:00
divelogexportdialog.h
divelogexportdialog.ui Use icons relative path. 2017-11-30 23:14:46 -08:00
divelogimportdialog.cpp CSV import: include visibility and rating in import 2018-05-01 22:42:10 +03:00
divelogimportdialog.h
divelogimportdialog.ui Use icons relative path. 2017-11-30 23:14:46 -08:00
divepicturewidget.cpp Implement different zoom levels for dive photos tab 2017-12-18 12:07:10 -08:00
divepicturewidget.h Implement different zoom levels for dive photos tab 2017-12-18 12:07:10 -08:00
diveplanner.cpp Planner: Add combo box for dive mode selection 2018-05-14 23:47:00 +03:00
diveplanner.h Core: remove dive.h from files that don't need it 2018-05-14 10:13:39 -07:00
diveplanner.ui Choose water presets from a qcombobox in planner, custom value possible 2018-03-02 08:38:22 -08:00
diveshareexportdialog.cpp
diveshareexportdialog.h
diveshareexportdialog.ui
downloadfromdivecomputer.cpp Core: introduce new subsurface-string header 2018-05-14 10:13:39 -07:00
downloadfromdivecomputer.h Fix memory leak in download-from-dive-computer widget 2017-11-11 21:01:42 +01:00
downloadfromdivecomputer.ui Use icons relative path. 2017-11-30 23:14:46 -08:00
filterwidget.ui Use better aliases for icons. 2017-11-30 23:14:46 -08:00
groupedlineedit.cpp Unused code: GroupedLineEdit::removeAllColors() 2018-01-10 16:45:42 +01:00
groupedlineedit.h Unused code: GroupedLineEdit::removeAllColors() 2018-01-10 16:45:42 +01:00
kmessagewidget.cpp
kmessagewidget.h
listfilter.ui Add tool tip for negate filter button 2017-12-30 08:15:11 -08:00
locationinformation.cpp Core: remove dive.h from files that don't need it 2018-05-14 10:13:39 -07:00
locationinformation.h locationinformation: don't update map location on typing 2017-11-27 22:59:22 +01:00
locationInformation.ui Use correct alias for satellite icon for revers geo lookup 2018-01-27 12:29:00 -08:00
mainwindow.cpp Dive pictures: Don't plot pictures twice when changing current dive 2018-05-17 07:24:54 -07:00
mainwindow.h Desktop: On dive edit from the dive list or map, switch to new state 2018-05-13 07:08:34 -07:00
mainwindow.ui Turn take-cloud-online menu action into checkbox 2018-01-06 10:46:07 -08:00
mapwidget.cpp Core: remove dive.h from files that don't need it 2018-05-14 10:13:39 -07:00
mapwidget.h map-widget: allow real-time updates of edited markers 2017-11-09 12:40:25 -08:00
modeldelegates.cpp Planner: Add combo box for dive mode selection 2018-05-14 23:47:00 +03:00
modeldelegates.h Planner: Add combo box for dive mode selection 2018-05-14 23:47:00 +03:00
notificationwidget.cpp Use queued connection to thread-safe MainWindow error handling 2018-01-31 14:47:26 +01:00
notificationwidget.h Use queued connection to thread-safe MainWindow error handling 2018-01-31 14:47:26 +01:00
plannerDetails.ui
plannerSettings.ui Planner and profile limit minimum GFlow to 10 and minimum GFhigh to 40 2017-11-13 11:53:55 +01:00
printdialog.cpp
printdialog.h
printer.cpp Dive pictures: Don't plot pictures twice when changing current dive 2018-05-17 07:24:54 -07:00
printer.h
printoptions.cpp Fix typo connot > cannot. 2017-11-28 11:36:19 +02:00
printoptions.h cleanup: Uninitialized pointer field 2017-12-29 09:14:20 -08:00
printoptions.ui
qtwaitingspinner.cpp
qtwaitingspinner.h
renumber.ui Use icons relative path. 2017-11-30 23:14:46 -08:00
searchbar.ui Use better aliases for icons. 2017-11-30 23:14:46 -08:00
setpoint.ui Use icons relative path. 2017-11-30 23:14:46 -08:00
shiftimagetimes.ui Use icons relative path. 2017-11-30 23:14:46 -08:00
shifttimes.ui Use icons relative path. 2017-11-30 23:14:46 -08:00
simplewidgets.cpp Dive pictures: Move metadata functions into own translation unit 2018-04-01 16:04:48 +03:00
simplewidgets.h Turn filter list options into context menu 2017-12-26 13:08:49 -08:00
starwidget.cpp Use better aliases for icons. 2017-11-30 23:14:46 -08:00
starwidget.h
subsurfacewebservices.cpp Core: remove dive.h from files that don't need it 2018-05-14 10:13:39 -07:00
subsurfacewebservices.h Remove redundant declaration of set_userid() 2017-11-26 23:17:23 +01:00
tableview.cpp Use better aliases for icons. 2017-11-30 23:14:46 -08:00
tableview.h
tableview.ui
tagwidget.cpp Show all autocompletes after entry of comma in tag list 2017-11-17 09:19:03 +01:00
tagwidget.h
templateedit.cpp
templateedit.h
templateedit.ui
templatelayout.cpp Cleanup: consistently use qPrintable() 2018-03-14 13:55:36 +02:00
templatelayout.h Use temperature_t for temperatures in struct stats_t 2018-02-24 11:45:17 -08:00
undocommands.cpp Core: introduce new subsurface-string header 2018-05-14 10:13:39 -07:00
undocommands.h Core: remove dive.h from files that don't need it 2018-05-14 10:13:39 -07:00
updatemanager.cpp desktop-widgets isn't built for mobile 2017-12-01 13:29:13 -08:00
updatemanager.h
urldialog.ui
usermanual.cpp Use better aliases for icons. 2017-11-30 23:14:46 -08:00
usermanual.h
usersurvey.cpp Use icons relative path. 2017-11-30 23:14:46 -08:00
usersurvey.h
usersurvey.ui
webservices.ui Use icons relative path. 2017-11-30 23:14:46 -08:00