eranif/codelite — pull request #540 by jcowgill (2014-08-31 16:44:14+00:00)
Title: Fix crash when using recent versions of wxsqlite3

This does not directly affect this version of codelite, but when linked against recent (>= 3.0.1) versions of wxsqlite3, codelite crashes because calling wxSQLite3Database::Close() on an already closed database is no longer allowed.

This patch just adds a call to IsOpen to check this before calling Close.