Skip to content

KRecentFileActions: use a struct that has three members {action, url, shortName}

Ahmad Samir requested to merge work/ahmad/structures into master

KRecentFileActions: use a struct that has three members {action, url, shortName}

Instead of using two maps, action -> url and url -> shortname.

  • Add a TODO to remove the removeAction() override; now the code calls KSelectAction::removeAction() and erases the corresponding object from m_recentActions as needed.

  • Change removeUrl() to also remove the corresponding object from m_recentActions.

  • Extend the unit test.

NO_CHANGELOG

Edited by Ahmad Samir

Merge request reports