1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-23 19:25:54 +01:00

Fixed recent open files logic

This commit is contained in:
Martin Tůma 2024-09-05 01:05:27 +02:00
parent c0bca44810
commit 0b6daad28f

View File

@ -2066,7 +2066,7 @@ void GUI::updateRecentFiles(const QString &fileName)
if (a)
delete a;
else if (actions.size() == MAX_RECENT_FILES)
delete actions.last();
delete actions.first();
actions = _recentFilesActionGroup->actions();
QAction *before = actions.size() ? actions.last() : _recentFilesEnd;