Don't leak "orphan" actions at exit

The original reason to orphan these actions is likely obsolete now.

Extract MainWindowViewer::addActionWithShortcut() to reduce code
duplication.
This commit is contained in:
Igor Kushnir
2021-03-09 14:47:58 +02:00
parent 482c19b358
commit 662b5c99fd
2 changed files with 35 additions and 69 deletions

View File

@ -159,6 +159,7 @@ private:
//! Método que inicializa el interfaz.
void setupUI();
void createActions();
QAction *addActionWithShortcut(const QString &text, const QString &shortcutKey);
void createToolBars();
void refreshRecentFilesActionList();
void clearRecentFiles();