summaryrefslogtreecommitdiffstats
path: root/qt-ui/divelistview.cpp
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@intel.com>2014-05-30 13:46:26 -0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-06-01 15:44:12 -0700
commit1556b723a26982204f3d648c5e1b98d6eda40a8c (patch)
tree461e29b3c7e16e654c77e43bbb93bd53630dab15 /qt-ui/divelistview.cpp
parent52ccb5783255a5d896c2d74af0953a8dfa18a0f6 (diff)
downloadsubsurface-1556b723a26982204f3d648c5e1b98d6eda40a8c.tar.gz
Do not replot for each picture added to dive.
Instead wait until all pictures have been set and plot that. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/divelistview.cpp')
-rw-r--r--qt-ui/divelistview.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/qt-ui/divelistview.cpp b/qt-ui/divelistview.cpp
index 8f5444804..837886187 100644
--- a/qt-ui/divelistview.cpp
+++ b/qt-ui/divelistview.cpp
@@ -817,13 +817,13 @@ void DiveListView::loadImages()
dive->latitude.udeg = lrint(1000000.0 * exif.GeoLocation.Latitude);
dive->longitude.udeg = lrint(1000000.0 * exif.GeoLocation.Longitude);
}
- mark_divelist_changed(true);
- MainWindow::instance()->refreshDisplay();
- MainWindow::instance()->graphics()->replot();
}
}
}
}
+ mark_divelist_changed(true);
+ MainWindow::instance()->refreshDisplay();
+ MainWindow::instance()->graphics()->replot();
}
QString DiveListView::lastUsedImageDir()