mirror of
https://github.com/huderlem/porymap.git
synced 2026-08-19 23:25:09 -05:00
Fix script engine memory leak
This commit is contained in:
@@ -10,7 +10,8 @@ class ScriptUtility : public QObject
|
||||
|
||||
public:
|
||||
ScriptUtility(MainWindow *mainWindow);
|
||||
void clearActions();
|
||||
~ScriptUtility();
|
||||
|
||||
QString getActionFunctionName(int actionIndex);
|
||||
Q_INVOKABLE bool registerAction(QString functionName, QString actionName, QString shortcut = "");
|
||||
Q_INVOKABLE bool registerToggleAction(QString functionName, QString actionName, QString shortcut = "", bool checked = false);
|
||||
@@ -59,6 +60,7 @@ private:
|
||||
|
||||
MainWindow *window;
|
||||
QList<QAction *> registeredActions;
|
||||
QSet<QTimer *> activeTimers;
|
||||
QHash<int, QString> actionMap;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user