From 373bd5db5bf7471888f03a2d32f04d4c6c18ecdf Mon Sep 17 00:00:00 2001 From: Martin Kleusberg Date: Sat, 26 Jul 2014 21:37:32 +0200 Subject: [PATCH] Remove \r characters from table definitions while reading DB layout Remove all \r characters from a table defintion when reading it. This makes sure it doesn't appear as a invalid character in the UI. This commit improves the displaying of EoD's database from issue #63. --- src/sqlitedb.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/sqlitedb.cpp b/src/sqlitedb.cpp index b34aed3b..bdf02d5c 100644 --- a/src/sqlitedb.cpp +++ b/src/sqlitedb.cpp @@ -805,6 +805,7 @@ void DBBrowserDB::updateSchema( ) QString val2 = QString::fromUtf8((const char*)sqlite3_column_text(vm, 1)); QString val3 = QString::fromUtf8((const char*)sqlite3_column_text(vm, 2)); QString val4 = QString::fromUtf8((const char*)sqlite3_column_text(vm, 3)); + val3.replace("\r", ""); if(val1 == "table" || val1 == "index" || val1 == "view" || val1 == "trigger") objMap.insert(val1, DBBrowserObject(val2, val3, val1, val4));