|
From: Eran I. <no...@so...> - 2014-01-17 12:06:41
|
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 5467088304e8cb6631c9971213193153b8be1ac6 (commit)
from 17c87d85bd3f83e995328cc24b31bb441e7a2634 (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/5467088304e8cb6631c9971213193153b8be1ac6
commit 5467088304e8cb6631c9971213193153b8be1ac6
Author: Eran <era...@gm...>
Date: Fri Jan 17 14:05:16 2014 +0200
Fixed: set the proper debug level when codelite starts up
Fixed: perform a santiy check when a non-editor window is selected and the user attempts to click an entry in the "Outline" tab
diff --git a/LiteEditor/app.cpp b/LiteEditor/app.cpp
index 51bfb6d..7536e49 100644
--- a/LiteEditor/app.cpp
+++ b/LiteEditor/app.cpp
@@ -45,6 +45,7 @@
#include "frame.h"
#include "asyncprocess.h" // IProcess
#include "new_build_tab.h"
+#include "cl_config.h"
#define __PERFORMANCE
#include "performance.h"
@@ -493,9 +494,7 @@ bool CodeLiteApp::OnInit()
#endif
// Set the log file verbosity
- long log_verbosity(FileLogger::Error);
- EditorConfigST::Get()->GetLongValue(wxT("LogVerbosity"), log_verbosity);
- FileLogger::Get()->SetVerbosity(log_verbosity);
+ FileLogger::Get()->SetVerbosity( clConfig::Get().Read("LogVerbosity", FileLogger::Error) );
CL_SYSTEM(wxT("Starting codelite..."));
// check for single instance
diff --git a/Outline/outline_symbol_tree.cpp b/Outline/outline_symbol_tree.cpp
index d8a88e7..ac215b3 100644
--- a/Outline/outline_symbol_tree.cpp
+++ b/Outline/outline_symbol_tree.cpp
@@ -30,6 +30,7 @@
#include "stringsearcher.h"
#include <wx/stc/stc.h>
#include "fc_fileopener.h"
+#include "macros.h"
#include "outline_symbol_tree.h"
//#include "manager.h"
@@ -221,6 +222,9 @@ wxTreeItemId svSymbolTree::TryGetPrevItem(wxTreeItemId item)
void svSymbolTree::FindAndSelect(IEditor* editor, wxString& pattern, const wxString& name)
{
+ // sanity
+ CHECK_PTR_RET(editor);
+
if( editor->FindAndSelect(pattern, name, 0 /* from pos */, m_manager->GetNavigationMgr()) == false ) {
// Could not select, clear the selection
editor->GetSTC()->SetSelectionStart(wxNOT_FOUND);
-----------------------------------------------------------------------
Summary of changes:
LiteEditor/app.cpp | 5 ++---
Outline/outline_symbol_tree.cpp | 4 ++++
2 files changed, 6 insertions(+), 3 deletions(-)
hooks/post-receive
--
codelite
|