Date: | 2015-04-26 20:25:08 (8 years 7 months ago) |
---|---|
Author: | Maarten ter Huurne |
Commit: | b6fcf0f69db8fa2de1926cf39dbb4cee3408c2c0 |
Message: | Make sure inserting a new section doesn't change the selected section |
Files: |
src/menu.cpp (1 diff) |
Change Details
src/menu.cpp | ||
---|---|---|
472 | 472 | if (it == sections.end() || *it != sectionName) { |
473 | 473 | sections.emplace(it, sectionName); |
474 | 474 | links.emplace(links.begin() + idx); |
475 | // Make sure the selected section doesn't change. | |
476 | if (idx <= iSection) { | |
477 | iSection++; | |
478 | } | |
475 | 479 | } |
476 | 480 | return idx; |
477 | 481 | } |
Branches:
install_locations
master
opkrun
packages