File tree Expand file tree Collapse file tree 2 files changed +19
-3
lines changed Expand file tree Collapse file tree 2 files changed +19
-3
lines changed Original file line number Diff line number Diff line change @@ -894,6 +894,7 @@ assemble the full text of the original line.
894
894
895
895
int iDeletedCount = 0 ;
896
896
int iDeletedNonTemporaryCount = 0 ;
897
+ set<CPlugin *> pluginsWithDeletions;
897
898
898
899
for (OneShotItemMap::const_iterator one_shot_it = mapOneShotItems.begin ();
899
900
one_shot_it != mapOneShotItems.end ();
@@ -922,11 +923,18 @@ assemble the full text of the original line.
922
923
// now delete its entry
923
924
GetTriggerMap ().RemoveKey (strTriggerName);
924
925
926
+ pluginsWithDeletions.insert (m_CurrentPlugin);
927
+
925
928
} // end of deleting one-shot items
926
929
927
930
if (iDeletedCount > 0 )
928
931
{
929
- SortTriggers ();
932
+ // make sure we sort the correct plugin(s)
933
+ for ( set<CPlugin *>::iterator i = pluginsWithDeletions.begin (); i != pluginsWithDeletions.end (); i++)
934
+ {
935
+ m_CurrentPlugin = *i;
936
+ SortTriggers ();
937
+ }
930
938
931
939
if (iDeletedNonTemporaryCount > 0 ) // plugin mods don't really count
932
940
SetModifiedFlag (TRUE ); // document has changed
Original file line number Diff line number Diff line change @@ -177,6 +177,7 @@ CAliasList AliasList;
177
177
178
178
int iDeletedCount = 0 ;
179
179
int iDeletedNonTemporaryCount = 0 ;
180
+ set<CPlugin *> pluginsWithDeletions;
180
181
181
182
for (OneShotItemMap::const_iterator one_shot_it = mapOneShotItems.begin ();
182
183
one_shot_it != mapOneShotItems.end ();
@@ -205,11 +206,18 @@ CAliasList AliasList;
205
206
// now delete its entry
206
207
GetAliasMap ().RemoveKey (strAliasName);
207
208
208
- } // end of deleting one-shot items
209
+ pluginsWithDeletions.insert (m_CurrentPlugin);
210
+
211
+ } // end of deleting one-shot items
209
212
210
213
if (iDeletedCount > 0 )
211
214
{
212
- SortAliases ();
215
+ // make sure we sort the correct plugin(s)
216
+ for ( set<CPlugin *>::iterator i = pluginsWithDeletions.begin (); i != pluginsWithDeletions.end (); i++)
217
+ {
218
+ m_CurrentPlugin = *i;
219
+ SortAliases ();
220
+ }
213
221
214
222
if (iDeletedNonTemporaryCount > 0 ) // plugin mods don't really count
215
223
SetModifiedFlag (TRUE ); // document has changed
You can’t perform that action at this time.
0 commit comments