mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-05-04 02:49:33 -05:00
Fix bug introduced in 684958b29c
This would stop the db schema from being reloaded when it actually should be. Also simplify code.
This commit is contained in:
@@ -140,6 +140,16 @@ private:
|
||||
bool tryEncryptionSettings(const QString& filename, bool* encrypted, CipherDialog*& cipherSettings);
|
||||
|
||||
bool dontCheckForStructureUpdates;
|
||||
|
||||
class NoStructureUpdateChecks
|
||||
{
|
||||
public:
|
||||
NoStructureUpdateChecks(DBBrowserDB& db) : m_db(db) { m_db.dontCheckForStructureUpdates = true; }
|
||||
~NoStructureUpdateChecks() { m_db.dontCheckForStructureUpdates = false; }
|
||||
|
||||
private:
|
||||
DBBrowserDB& m_db;
|
||||
};
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user