summaryrefslogtreecommitdiff
path: root/plugins/WebView/src/webview.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-11-14 16:53:52 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-11-14 16:53:52 +0300
commitfea80908985f5f79d8e5a8eb17df57ee44054fcc (patch)
tree7ec69f525cb209f7805e61547908325528792511 /plugins/WebView/src/webview.cpp
parent24cad0c352040cb469b63b0b5d4a0007a64cae3c (diff)
WebView -> g_plugin
Diffstat (limited to 'plugins/WebView/src/webview.cpp')
-rw-r--r--plugins/WebView/src/webview.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/WebView/src/webview.cpp b/plugins/WebView/src/webview.cpp
index 6e72610729..9f65d3e435 100644
--- a/plugins/WebView/src/webview.cpp
+++ b/plugins/WebView/src/webview.cpp
@@ -421,13 +421,13 @@ int OnTopMenuCommand(WPARAM, LPARAM, MCONTACT singlecontact)
int ontop = 0;
int done = 0;
- if (((db_get_b(singlecontact, MODULENAME, ON_TOP_KEY, 0))) && done == 0) {
- db_set_b(singlecontact, MODULENAME, ON_TOP_KEY, 0);
+ if (((g_plugin.getByte(singlecontact, ON_TOP_KEY))) && done == 0) {
+ g_plugin.setByte(singlecontact, ON_TOP_KEY, 0);
ontop = 0;
done = 1;
}
- if ((!(db_get_b(singlecontact, MODULENAME, ON_TOP_KEY, 0))) && done == 0) {
- db_set_b(singlecontact, MODULENAME, ON_TOP_KEY, 1);
+ if ((!(g_plugin.getByte(singlecontact, ON_TOP_KEY, 0))) && done == 0) {
+ g_plugin.setByte(singlecontact, ON_TOP_KEY, 1);
ontop = 1;
done = 1;
}