mirror of https://github.com/odrling/Aegisub
Fix moving files to the front of the MRU list
This commit is contained in:
parent
72748d45f7
commit
8ba286c544
|
@ -56,7 +56,7 @@ void MRUManager::Add(std::string const& key, agi::fs::path const& entry) {
|
|||
if (it == begin(map) && it != end(map))
|
||||
return;
|
||||
if (it != end(map))
|
||||
rotate(begin(map), it, it);
|
||||
rotate(begin(map), it, it + 1);
|
||||
else {
|
||||
map.insert(begin(map), entry);
|
||||
Prune(key, map);
|
||||
|
|
Loading…
Reference in New Issue