Skip to content

Commit d5720b8

Browse files
authored
Fix LT-22365: Crash after clicking 'Create and Edit' in Reversal Indexes (#624)
1 parent 46e7338 commit d5720b8

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Src/xWorks/DictionaryConfigurationListener.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,12 @@ internal static string GetDefaultConfigurationDirectory(string area)
181181
/// </summary>
182182
private static string GetInnermostConfigurationDirectory(IPropertyRetriever propertyTable, ICmObject obj = null)
183183
{
184-
switch(propertyTable.GetStringProperty("currentContentControl", null))
184+
if (obj is ILexEntry)
185+
{
186+
// For popup lexical entry editor (LT-22345).
187+
return DictConfigDirName;
188+
}
189+
switch (propertyTable.GetStringProperty("currentContentControl", null))
185190
{
186191
case "reversalToolBulkEditReversalEntries":
187192
case "reversalToolEditComplete":
@@ -193,11 +198,6 @@ private static string GetInnermostConfigurationDirectory(IPropertyRetriever prop
193198
case "lexiconClassifiedDictionary":
194199
return ClassifiedDictConfigDirName;
195200
default:
196-
if (obj is ILexEntry)
197-
{
198-
// For popup lexical entry editor (LT-22345).
199-
return DictConfigDirName;
200-
}
201201
return null;
202202
}
203203
}

0 commit comments

Comments
 (0)