diff options
author | Sergey Bolhovskoy <elzorfox@ya.ru> | 2015-06-27 17:24:47 +0000 |
---|---|---|
committer | Sergey Bolhovskoy <elzorfox@ya.ru> | 2015-06-27 17:24:47 +0000 |
commit | 32a37006c3d6eab55725fbd2c2702e2e2abec888 (patch) | |
tree | ed2c93d92b065baad52c13628860585f8d1dae65 /plugins/SmileyAdd/src/smileys.cpp | |
parent | c28c16e9cb3aff055f55fb3386ca88e7382f5ee1 (diff) |
SmileyAdd:
clear filename smiley pack if it filed
fix contact menu (remove unload smiley pack)
git-svn-id: http://svn.miranda-ng.org/main/trunk@14418 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/SmileyAdd/src/smileys.cpp')
-rw-r--r-- | plugins/SmileyAdd/src/smileys.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/plugins/SmileyAdd/src/smileys.cpp b/plugins/SmileyAdd/src/smileys.cpp index 899e2580b1..c2a688ae97 100644 --- a/plugins/SmileyAdd/src/smileys.cpp +++ b/plugins/SmileyAdd/src/smileys.cpp @@ -734,8 +734,14 @@ void SmileyCategoryType::Load(void) {
bool visiblecat = opt.UsePhysProto ? !IsAcc() : !IsPhysProto();
bool visible = opt.UseOneForAll ? !IsProto() : visiblecat;
- if (visible)
- m_pSmileyPackStore->AddSmileyPack(m_Filename, m_DisplayName);
+
+ if (visible && !m_Filename.IsEmpty()){
+ bool loaded = m_pSmileyPackStore->AddSmileyPack(m_Filename, m_DisplayName);
+ if (!loaded){
+ ClearFilename();
+ SaveSettings();
+ }
+ }
}
|