Date:2015-04-26 20:25:08 (8 years 11 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
472472    if (it == sections.end() || *it != sectionName) {
473473        sections.emplace(it, sectionName);
474474        links.emplace(links.begin() + idx);
475        // Make sure the selected section doesn't change.
476        if (idx <= iSection) {
477            iSection++;
478        }
475479    }
476480    return idx;
477481}

Archive Download the corresponding diff file



interactive