1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-10-06 06:43:22 +02: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) if (a)
delete a; delete a;
else if (actions.size() == MAX_RECENT_FILES) else if (actions.size() == MAX_RECENT_FILES)
delete actions.last(); delete actions.first();
actions = _recentFilesActionGroup->actions(); actions = _recentFilesActionGroup->actions();
QAction *before = actions.size() ? actions.last() : _recentFilesEnd; QAction *before = actions.size() ? actions.last() : _recentFilesEnd;