Added logic to reset TAS window hot keys if a key sequence is changed on the hotkey config dialog.
This commit is contained in:
parent
f351150ad9
commit
0271552ceb
|
@ -312,6 +312,7 @@ class TasEditorWindow : public QDialog
|
|||
HISTORY history;
|
||||
BRANCHES branches;
|
||||
|
||||
void initHotKeys(void);
|
||||
void updateCaption(void);
|
||||
bool loadProject(const char* fullname);
|
||||
void loadClipboard(const char *txt);
|
||||
|
@ -328,7 +329,6 @@ class TasEditorWindow : public QDialog
|
|||
QMenuBar *buildMenuBar(void);
|
||||
void buildPianoRollDisplay(void);
|
||||
void buildSideControlPanel(void);
|
||||
void initHotKeys(void);
|
||||
void initPatterns(void);
|
||||
|
||||
QMenu *recentProjectMenu;
|
||||
|
|
|
@ -30,6 +30,7 @@
|
|||
#include "Qt/ConsoleWindow.h"
|
||||
#include "Qt/ConsoleUtilities.h"
|
||||
#include "Qt/CheatsConf.h"
|
||||
#include "Qt/TasEditor/TasEditorWindow.h"
|
||||
|
||||
#include "Qt/sdl.h"
|
||||
#include "Qt/sdl-video.h"
|
||||
|
@ -455,6 +456,11 @@ void setHotKeys(void)
|
|||
{
|
||||
Hotkeys[i].readConfig();
|
||||
}
|
||||
|
||||
if ( tasWin != NULL )
|
||||
{
|
||||
tasWin->initHotKeys();
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue