summaryrefslogtreecommitdiff
path: root/plugins/MirLua
diff options
context:
space:
mode:
authoraunsane <aunsane@gmail.com>2018-02-25 14:45:28 +0300
committeraunsane <aunsane@gmail.com>2018-02-25 14:45:28 +0300
commita76776079b6d15e92dffd0c5c0016389092b1c8b (patch)
treeac686f25c8714b11824624b7773f499035b6827c /plugins/MirLua
parent7fc01c9c474a732cd8b978d2f163f0839b2f956d (diff)
Fixes related with 7fc01c9
Diffstat (limited to 'plugins/MirLua')
-rw-r--r--plugins/MirLua/src/mlua_options.cpp18
-rw-r--r--plugins/MirLua/src/mlua_options.h16
2 files changed, 1 insertions, 33 deletions
diff --git a/plugins/MirLua/src/mlua_options.cpp b/plugins/MirLua/src/mlua_options.cpp
index 9a4438d408..2a7d141e41 100644
--- a/plugins/MirLua/src/mlua_options.cpp
+++ b/plugins/MirLua/src/mlua_options.cpp
@@ -1,23 +1,5 @@
#include "stdafx.h"
-CCtrlScriptList::CCtrlScriptList(CDlgBase* dlg, int ctrlId)
- : CCtrlListView(dlg, ctrlId)
-{
-}
-
-BOOL CCtrlScriptList::OnNotify(int idCtrl, NMHDR *pnmh)
-{
- if (pnmh->code == NM_CLICK)
- {
- TEventInfo evt = { this, pnmh };
- OnClick(&evt);
- return TRUE;
- }
- return CCtrlListView::OnNotify(idCtrl, pnmh);
-}
-
-/****************************************/
-
CMLuaOptions::CMLuaOptions(int idDialog)
: CPluginDlgBase(g_hInstance, idDialog, MODULE),
m_popupOnError(this, IDC_POPUPONERROR),
diff --git a/plugins/MirLua/src/mlua_options.h b/plugins/MirLua/src/mlua_options.h
index 5d36188604..a8168d70da 100644
--- a/plugins/MirLua/src/mlua_options.h
+++ b/plugins/MirLua/src/mlua_options.h
@@ -3,20 +3,6 @@
#include <m_gui.h>
-class CCtrlScriptList : public CCtrlListView
-{
-private:
- typedef CCtrlListView CSuper;
-
-protected:
- BOOL OnNotify(int idCtrl, NMHDR *pnmh);
-
-public:
- CCtrlScriptList(CDlgBase* dlg, int ctrlId);
-
- CCallback<TEventInfo> OnClick;
-};
-
class CMLuaOptions : public CPluginDlgBase
{
private:
@@ -24,7 +10,7 @@ private:
CCtrlCheck m_popupOnObsolete;
bool isScriptListInit;
- CCtrlScriptList m_scripts;
+ CCtrlListView m_scripts;
CCtrlButton m_reload;
void LoadScripts();