diff options
| author | 2015-04-19 22:30:21 -0400 | |
|---|---|---|
| committer | 2015-04-19 22:30:21 -0400 | |
| commit | a308f430f694423064ebc86fd0506c8c6fdb3d93 (patch) | |
| tree | ceacd24fecf92f40980f8d8f3fd169e317c886af /SQLiteStudio3/coreSQLiteStudio/db/abstractdb.cpp | |
| parent | a5b034d4a9c44f9bc1e83b01de82530f8fc63013 (diff) | |
Imported Upstream version 3.0.5upstream/3.0.5
Diffstat (limited to 'SQLiteStudio3/coreSQLiteStudio/db/abstractdb.cpp')
| -rw-r--r-- | SQLiteStudio3/coreSQLiteStudio/db/abstractdb.cpp | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/SQLiteStudio3/coreSQLiteStudio/db/abstractdb.cpp b/SQLiteStudio3/coreSQLiteStudio/db/abstractdb.cpp index 68c6ad7..8c08a51 100644 --- a/SQLiteStudio3/coreSQLiteStudio/db/abstractdb.cpp +++ b/SQLiteStudio3/coreSQLiteStudio/db/abstractdb.cpp @@ -703,23 +703,6 @@ int AbstractDb::getErrorCode() bool AbstractDb::initAfterCreated() { - bool isOpenBefore = isOpen(); - if (!isOpenBefore) - { - if (!openForProbing()) - { - qWarning() << "Could not open database for initAfterCreated(). Database:" << name; - return false; - } - } - - // SQLite version - QVariant value = exec("SELECT sqlite_version()")->getSingleCell(); - version = value.toString().mid(0, 1).toUInt(); - - if (!isOpenBefore) - closeQuiet(); - return true; } |
