This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "codelite".
The branch, master has been updated
via 17c87d85bd3f83e995328cc24b31bb441e7a2634 (commit)
from 4f5ed71f0facd87c8a5a8b4db6b8b5593c7ca656 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
https://sourceforge.net/p/codelite/codelitegit/ci/17c87d85bd3f83e995328cc24b31bb441e7a2634
commit 17c87d85bd3f83e995328cc24b31bb441e7a2634
Author: dghart <da...@4P...>
Date: Fri Jan 17 11:25:23 2014 +0000
When using wxCrafter in 'tabbed' mode, select the 'wxCrafter' workspace-view tab when the wxCrafter editor is activated, and workspace-view tab 0 when it isn't
Previously, when the wxC 'editor' was active and then a non-wxC editor was selected, the active workspace-view tab remained 'wxCrafter'. Now it changes to the first tab, which is the one most likely to be the user's preferred one.
diff --git a/LiteEditor/workspacetab.cpp b/LiteEditor/workspacetab.cpp
index 01da584..9666497 100644
--- a/LiteEditor/workspacetab.cpp
+++ b/LiteEditor/workspacetab.cpp
@@ -332,10 +332,19 @@ void WorkspaceTab::OnActiveEditorChanged(wxCommandEvent& e)
{
e.Skip();
if (m_isLinkedToEditor) {
- LEditor *editor = clMainFrame::Get()->GetMainBook()->GetActiveEditor();
+ MainBook* mainbook = clMainFrame::Get()->GetMainBook();
+ LEditor *editor = mainbook->GetActiveEditor();
if (editor && !editor->GetProject().IsEmpty()) {
m_fileView->ExpandToPath(editor->GetProject(), editor->GetFileName());
}
+
+ Notebook* book = clMainFrame::Get()->GetWorkspacePane()->GetNotebook();
+ if (book) {
+ size_t index = book->GetPageIndex("wxCrafter");
+ if (index == book->GetSelection()) {
+ book->SetSelection(0); // The most likely to be wanted
+ }
+ }
}
}
-----------------------------------------------------------------------
Summary of changes:
LiteEditor/workspacetab.cpp | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
hooks/post-receive
--
codelite
|