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:
parent
c0bca44810
commit
0b6daad28f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user