Skip to content

Commit

Permalink
Solving text issue in object kinds defined during project creation.
Browse files Browse the repository at this point in the history
Fixing #510
  • Loading branch information
pascalhorton committed Apr 24, 2024
1 parent 4a2244e commit 05b4b4d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/database/database.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ bool DataBase::DataBaseCreateNew(const wxString& datadir, const wxString& name)
// check if database path already exists
wxFileName mydb_path(datadir, name);
if (mydb_path.Exists()) {
wxLogError(_("Database: '%s' allready exists!"), mydb_path.GetFullPath());
wxLogError(_("Database: '%s' already exists!"), mydb_path.GetFullPath());
return false;
}

Expand Down Expand Up @@ -250,9 +250,9 @@ bool DataBase::DataBaseOpen(const wxString& datadir, const wxString& name) {
mysql_refresh(m_MySQL, REFRESH_HOSTS);
mysql_refresh(m_MySQL, REFRESH_STATUS);
mysql_refresh(m_MySQL, REFRESH_THREADS);
mysql_close(m_MySQL);
m_MySQL = mysql_init(nullptr);
m_IsDatabaseOpened = false;
//mysql_close(m_MySQL);
//m_MySQL = mysql_init(nullptr);
//m_IsDatabaseOpened = false;
}
if (!m_IsDatabaseOpened) {
if (mysql_real_connect(m_MySQL, NULL, NULL, NULL, (const char*)name.mb_str(wxConvUTF8), 3309, NULL,
Expand Down

0 comments on commit 05b4b4d

Please sign in to comment.