diff options
author | Gluzskiy Alexandr <sss@sss.chaoslab.ru> | 2018-06-01 02:02:43 +0300 |
---|---|---|
committer | Gluzskiy Alexandr <sss@sss.chaoslab.ru> | 2018-06-01 02:04:49 +0300 |
commit | 0d3c50e1d4280ab0622326cd77224f2ce6aa4e77 (patch) | |
tree | 2b6981cffcd3a77b2cf471cd6c2976ecea669693 /plugins/StopSpamMod/src | |
parent | ea6db2ae9378d13cf0c10653c66c636e4da0548f (diff) |
plugins: stopspammod: options fixes
- activate apply button on any change in account lists (OK button still does not handled properly, i need more info about UI api)
Diffstat (limited to 'plugins/StopSpamMod/src')
-rwxr-xr-x | plugins/StopSpamMod/src/options.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/StopSpamMod/src/options.cpp b/plugins/StopSpamMod/src/options.cpp index 13d122d006..e3447fd4f2 100755 --- a/plugins/StopSpamMod/src/options.cpp +++ b/plugins/StopSpamMod/src/options.cpp @@ -145,15 +145,18 @@ public: }
db_set_s(NULL, MODULENAME, "protoList", out.str().c_str());
}
+
void onClick_ADD(CCtrlButton*)
{
list_USEDPROTO.AddString(list_ALLPROTO.GetItemText(list_ALLPROTO.GetCurSel()));
list_ALLPROTO.DeleteString(list_ALLPROTO.GetCurSel());
+ this->NotifyChange();
}
void onClick_REMOVE(CCtrlButton*)
{
list_ALLPROTO.AddString(list_USEDPROTO.GetItemText(list_USEDPROTO.GetCurSel()));
list_USEDPROTO.DeleteString(list_USEDPROTO.GetCurSel());
+ this->NotifyChange();
}
void onClick_ADDALL(CCtrlButton*)
{
@@ -164,6 +167,7 @@ public: list_USEDPROTO.AddString(list_ALLPROTO.GetItemText(0));
list_ALLPROTO.DeleteString(0);
}
+ this->NotifyChange();
}
void onClick_REMOVEALL(CCtrlButton*)
{
@@ -174,6 +178,7 @@ public: list_ALLPROTO.AddString(list_USEDPROTO.GetItemText(0));
list_USEDPROTO.DeleteString(0);
}
+ this->NotifyChange();
}
private:
CCtrlListBox list_USEDPROTO, list_ALLPROTO;
|