From 2af1c301695590b94b65d92976b89380f77e7999 Mon Sep 17 00:00:00 2001 From: Sergey Bolhovskoy Date: Mon, 27 Apr 2015 11:28:25 +0000 Subject: SmileyAdd: fix visible options for virtual protocols git-svn-id: http://svn.miranda-ng.org/main/trunk@13196 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/SmileyAdd/src/options.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'plugins/SmileyAdd/src/options.cpp') 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; } } -- cgit v1.2.3