summaryrefslogtreecommitdiff
path: root/protocols/VKontakte/src/misc.cpp
diff options
context:
space:
mode:
authorSergey Bolhovskoy <elzorfox@ya.ru>2014-12-31 04:44:21 +0000
committerSergey Bolhovskoy <elzorfox@ya.ru>2014-12-31 04:44:21 +0000
commit5de1b2c939a26695aaab99540fe3d37527512cb3 (patch)
treea27e4c60a26c0f28d5b6321fce6564c3c8cb9239 /protocols/VKontakte/src/misc.cpp
parent4f357958b94ad9e0637fcfd7c9b83cf24803c4cb (diff)
VKontakte:
code cleanup add hidden option for max photo count on loading news git-svn-id: http://svn.miranda-ng.org/main/trunk@11690 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/VKontakte/src/misc.cpp')
-rw-r--r--protocols/VKontakte/src/misc.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/VKontakte/src/misc.cpp b/protocols/VKontakte/src/misc.cpp
index 9ce568f154..27fab75f2e 100644
--- a/protocols/VKontakte/src/misc.cpp
+++ b/protocols/VKontakte/src/misc.cpp
@@ -647,14 +647,14 @@ int CVkProto::OnDbSettingChanged(WPARAM hContact, LPARAM lParam)
CMStringA szListeningTo(m_szModuleName);
szListeningTo += "Enabled";
if (!strcmp(cws->szSetting, szListeningTo.GetBuffer())) {
- int iOldMusicSendMetod = getByte("OldMusicSendMetod", 3);
+ MusicSendMetod iOldMusicSendMetod = (MusicSendMetod)getByte("OldMusicSendMetod", sendBroadcastAndStatus);
if (cws->value.bVal == 0)
setByte("OldMusicSendMetod", m_iMusicSendMetod);
else
db_unset(0, m_szModuleName, "OldMusicSendMetod");
- m_iMusicSendMetod = cws->value.bVal == 0 ? 0 : iOldMusicSendMetod;
+ m_iMusicSendMetod = cws->value.bVal == 0 ? sendNone : iOldMusicSendMetod;
setByte("MusicSendMetod", m_iMusicSendMetod);
}