aboutsummaryrefslogtreecommitdiff
path: root/simple-visualization
diff options
context:
space:
mode:
Diffstat (limited to 'simple-visualization')
-rw-r--r--simple-visualization/simplevisualization.cpp2
-rw-r--r--simple-visualization/simplevisualization.hpp1
2 files changed, 3 insertions, 0 deletions
diff --git a/simple-visualization/simplevisualization.cpp b/simple-visualization/simplevisualization.cpp
index d45d101..71dac7a 100644
--- a/simple-visualization/simplevisualization.cpp
+++ b/simple-visualization/simplevisualization.cpp
@@ -14,12 +14,14 @@ void qmpSimpleVisualization::init()
}
p=new qmpKeyboardWindow(api,(QWidget*)api->getMainWindow());
uihs=api->registerUIHook("main.stop",[this](const void*,void*){this->p->resetAll();},nullptr);
+ uihsk=api->registerUIHook("main.seek",[this](const void*,void*){this->p->resetAll();},nullptr);
}
void qmpSimpleVisualization::deinit()
{
if(!api)return;close();
api->unregisterFunctionality("Keyboard");
api->unregisterUIHook("main.stop",uihs);
+ api->unregisterUIHook("main.seek",uihsk);
delete p;
}
const char* qmpSimpleVisualization::pluginGetName()
diff --git a/simple-visualization/simplevisualization.hpp b/simple-visualization/simplevisualization.hpp
index d79eef0..58b02ac 100644
--- a/simple-visualization/simplevisualization.hpp
+++ b/simple-visualization/simplevisualization.hpp
@@ -10,6 +10,7 @@ class qmpSimpleVisualization:public qmpPluginIntf,public qmpFuncBaseIntf
qmpPluginAPI* api;
qmpKeyboardWindow *p;
int uihs;
+ int uihsk;
public:
qmpSimpleVisualization(qmpPluginAPI* _api);
void show();