~ubuntu-branches/ubuntu/oneiric/monodevelop/oneiric

« back to all changes in this revision

Viewing changes to src/core/MonoDevelop.Ide/MonoDevelop.Ide.Navigation/HistoryList.cs

  • Committer: Bazaar Package Importer
  • Author(s): Jo Shields
  • Date: 2011-06-27 17:03:13 UTC
  • mto: (1.8.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 54.
  • Revision ID: james.westby@ubuntu.com-20110627170313-6cvz3s19x6e9hqe9
ImportĀ upstreamĀ versionĀ 2.5.92+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
210
210
                public void RemoveCurrent ()
211
211
                {
212
212
                        if (CanMoveBack) {
 
213
                                DestroyItem (current);
213
214
                                current = back.Last.Value;
214
215
                                current.SetVisited ();
215
 
                                DestroyItem (back.Last.Value);
216
216
                                back.RemoveLast ();
217
217
                        }
218
218
                }
314
314
                        forward.Clear ();
315
315
                        back.Clear ();
316
316
                        
317
 
                        if (current != null)
 
317
                        if (current != null) {
318
318
                                DestroyItem (current);
 
319
                                current = null;
 
320
                        }
319
321
                }
320
322
                
321
323
                public void ClearForward ()