diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2014-11-09 21:32:38 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-11-09 21:32:38 -0800 |
commit | 7cb307cf73c2662dac5a3e03a66fdb878d26e432 (patch) | |
tree | 6b470f3837664b0b17d5431f062b07c2700b1157 /color.h | |
parent | fd997c1b15e798bdf2aa1088e0c58467793a511d (diff) | |
download | subsurface-7cb307cf73c2662dac5a3e03a66fdb878d26e432.tar.gz |
Don't crash when restoring the selection
If we end up trying to restore the selection where the selected dive is no
longer visible (i.e., it's now filtered away), this code caused a crash by
falling first() on an empty list. Let's not do that.
Fixes #758
Diffstat (limited to 'color.h')
0 files changed, 0 insertions, 0 deletions