~quadrispro/codelite/trunk

« back to all changes in this revision

Viewing changes to LiteEditor/mainbook.cpp

  • Committer: eranif
  • Date: 2010-09-21 13:15:20 UTC
  • Revision ID: svn-v4:9da81c78-c036-0410-9e1f-a2b0375e4b5a:trunk:4415
- Fixed: (regression) codelite now remembers the last open tab (DacidGH)
- Fixed: when loading a workspace, temporarily disable the 'link to editor' button (DavidGH)
- Fixed: minor change to make_deb.sh (DavidGH)
- Fixed: temporary breakpoints persistency (DavidGH)

Show diffs side-by-side

added added

removed removed

Lines of Context:
309
309
                        }
310
310
                }
311
311
        }
312
 
        SelectPage(m_book->GetPage(sel));
 
312
        // We can't just use SelectPane() here.
 
313
        // Notebook::DoPageChangedEvent has posted events to us,
 
314
        // which have the effect of selecting back to page 0
 
315
        // So post ourselves an event, so that it arrives after that one
 
316
        NotebookEvent event(wxEVT_COMMAND_BOOK_PAGE_CHANGED, GetId());
 
317
        event.SetSelection(sel);
 
318
        m_book->GetEventHandler()->AddPendingEvent(event);
313
319
}
314
320
 
315
321
LEditor *MainBook::GetActiveEditor()
976
982
        }
977
983
}
978
984
 
979
 
void MainBook::OnPageChanging(NotebookEvent& e)
 
985
void MainBook::OnPageChanging(NotebookEvent& e)
980
986
{
981
987
        LEditor *editor = GetActiveEditor();
982
988
        if(editor) {
983
989
                editor->HideCompletionBox();
984
990
                editor->CallTipCancel();
985
991
        }
986
 
        e.Skip();
987
 
}
 
992
        e.Skip();
 
993
}