aboutsummaryrefslogtreecommitdiff
path: root/src/InputMediator.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/InputMediator.cpp')
-rw-r--r--src/InputMediator.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/InputMediator.cpp b/src/InputMediator.cpp
index 350d8ac..f935ad2 100644
--- a/src/InputMediator.cpp
+++ b/src/InputMediator.cpp
@@ -7,8 +7,10 @@
#include "LuaRuntime.hpp"
#include "widgets/WebViewStack.hpp"
-InputMediator::InputMediator(WebViewStack *webViewStack, LuaRuntime *luaRuntime)
- : QObject(), webViewStack(webViewStack), luaRuntime(luaRuntime) {
+InputMediator::InputMediator(WebViewStack *webViewStack, LuaRuntime *luaRuntime,
+ KeymapEvaluator *keymapEvaluator)
+ : QObject(), webViewStack(webViewStack), luaRuntime(luaRuntime),
+ keymapEvaluator(keymapEvaluator) {
connect(luaRuntime, &LuaRuntime::urlOpened, webViewStack,
&WebViewStack::openUrl);
}
@@ -40,3 +42,5 @@ void InputMediator::evaluateCommand(QString command) {
break;
}
}
+
+InputMediator::~InputMediator() { delete webViewStack; }