mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-01-20 02:50:46 -06:00
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.
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user