aboutsummaryrefslogtreecommitdiff
path: root/simple-visualization/simplevisualization.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'simple-visualization/simplevisualization.cpp')
-rw-r--r--simple-visualization/simplevisualization.cpp2
1 files changed, 2 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()