diff options
Diffstat (limited to 'plugins/SmileyAdd/src/options.cpp')
-rw-r--r-- | plugins/SmileyAdd/src/options.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/plugins/SmileyAdd/src/options.cpp b/plugins/SmileyAdd/src/options.cpp index 7ce4e8ec15..6d388c6679 100644 --- a/plugins/SmileyAdd/src/options.cpp +++ b/plugins/SmileyAdd/src/options.cpp @@ -343,10 +343,12 @@ void OptionsDialogType::UpdateVisibleSmPackList(void) CMString FileName;
if (!ProtoName.IsEmpty()) {
- PhysProtoName += ProtoName;
- FileName = tmpsmcat.GetSmileyCategory(PhysProtoName) ? tmpsmcat.GetSmileyCategory(PhysProtoName)->GetFilename() : _T("");
- if (FileName.IsEmpty())
- visible = true;
+ PhysProtoName += ProtoName;
+ SmileyCategoryType* scm = tmpsmcat.GetSmileyCategory(PhysProtoName);
+ if (scm == NULL)
+ visible = false;
+ else if (scm->GetFilename().IsEmpty())
+ visible = true;
}
}
|