mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-24 03:35:53 +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)
|
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;
|
||||||
|
Loading…
Reference in New Issue
Block a user