plug-ins: imagemap, don't run execute for sash when redoing

It adds event handlers expecting the mouse button to be down, but it
isn't, so everything broke.
This commit is contained in:
Mikael Magnusson 2011-02-23 12:55:27 +01:00
parent 8621807a9f
commit cc3f1e8a24
1 changed files with 7 additions and 1 deletions

View File

@ -31,12 +31,13 @@
static void move_sash_command_destruct(Command_t *command);
static CmdExecuteValue_t move_sash_command_execute(Command_t *command);
static void move_sash_command_redo(Command_t *command);
static CommandClass_t move_sash_command_class = {
move_sash_command_destruct,
move_sash_command_execute,
NULL /*undo*/,
NULL /*redo*/
move_sash_command_redo
};
typedef struct {
@ -142,3 +143,8 @@ move_sash_command_execute(Command_t *parent)
return CMD_APPEND;
}
static void move_sash_command_redo(Command_t *command)
{
/* do nothing, but avoid running execute again which will break event handling */
}