diff options
author | dec05eba <dec05eba@protonmail.com> | 2019-12-01 23:35:01 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2019-12-01 23:35:01 +0100 |
commit | f330b16a2c36585be8ce8102cfb11e4914ed9a69 (patch) | |
tree | f73449119a55a318a520620f57a808db622f4ea6 /src/Body.cpp | |
parent | b86434c629e52034ec44c7582dadfbdeb1961d15 (diff) |
Add image preview to image board thread
Diffstat (limited to 'src/Body.cpp')
-rw-r--r-- | src/Body.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Body.cpp b/src/Body.cpp index 8412c6c..01f0292 100644 --- a/src/Body.cpp +++ b/src/Body.cpp @@ -60,6 +60,12 @@ namespace QuickMedia { } void Body::reset_selected() { + for(size_t i = 0; i < items.size(); ++i) { + if(items[i]->visible) { + selected_item = i; + return; + } + } selected_item = 0; } |