aboutsummaryrefslogtreecommitdiffstats
path: root/SQLiteStudio3/coreSQLiteStudio/sqlitestudio.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'SQLiteStudio3/coreSQLiteStudio/sqlitestudio.cpp')
-rw-r--r--SQLiteStudio3/coreSQLiteStudio/sqlitestudio.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/SQLiteStudio3/coreSQLiteStudio/sqlitestudio.cpp b/SQLiteStudio3/coreSQLiteStudio/sqlitestudio.cpp
index 963ba7d..8d62b44 100644
--- a/SQLiteStudio3/coreSQLiteStudio/sqlitestudio.cpp
+++ b/SQLiteStudio3/coreSQLiteStudio/sqlitestudio.cpp
@@ -39,7 +39,7 @@
DEFINE_SINGLETON(SQLiteStudio)
-static const int sqlitestudioVersion = 30005;
+static const int sqlitestudioVersion = 30006;
SQLiteStudio::SQLiteStudio()
{
@@ -87,6 +87,7 @@ void SQLiteStudio::setImmediateQuit(bool value)
immediateQuit = value;
}
+#ifdef PORTABLE_CONFIG
UpdateManager* SQLiteStudio::getUpdateManager() const
{
return updateManager;
@@ -96,6 +97,7 @@ void SQLiteStudio::setUpdateManager(UpdateManager* value)
{
updateManager = value;
}
+#endif
BugReporter* SQLiteStudio::getBugReporter() const
{
@@ -319,7 +321,9 @@ void SQLiteStudio::init(const QStringList& cmdListArguments, bool guiAvailable)
importManager = new ImportManager();
populateManager = new PopulateManager();
bugReporter = new BugReporter();
+#ifdef PORTABLE_CONFIG
updateManager = new UpdateManager();
+#endif
extraLicenseManager = new ExtraLicenseManager();
extraLicenseManager->addLicense("SQLiteStudio license (GPL v3)", ":/docs/licenses/sqlitestudio_license.txt");
@@ -349,7 +353,9 @@ void SQLiteStudio::cleanUp()
pluginManager->deinit();
safe_delete(pluginManager); // PluginManager before DbManager, so Db objects are deleted while DbManager still exists
+#ifdef PORTABLE_CONFIG
safe_delete(updateManager);
+#endif
safe_delete(bugReporter);
safe_delete(populateManager);
safe_delete(importManager);