diff options
| author | 2015-05-12 16:19:40 -0400 | |
|---|---|---|
| committer | 2015-05-12 16:19:40 -0400 | |
| commit | 9618f0ebbf4b88045247c01ce8c8f58203508ebf (patch) | |
| tree | 20c9894691353ee8bab4eec668e9b0b6c6426e0f /SQLiteStudio3/sqlitestudio/main.cpp | |
| parent | a308f430f694423064ebc86fd0506c8c6fdb3d93 (diff) | |
Imported Upstream version 3.0.6upstream/3.0.6
Diffstat (limited to 'SQLiteStudio3/sqlitestudio/main.cpp')
| -rw-r--r-- | SQLiteStudio3/sqlitestudio/main.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/SQLiteStudio3/sqlitestudio/main.cpp b/SQLiteStudio3/sqlitestudio/main.cpp index 4ec98cc..0ac506f 100644 --- a/SQLiteStudio3/sqlitestudio/main.cpp +++ b/SQLiteStudio3/sqlitestudio/main.cpp @@ -34,6 +34,7 @@ #include <QPluginLoader>
#include <QDebug>
#include <QMessageBox>
+#include <QProcess>
bool listPlugins = false;
@@ -92,6 +93,7 @@ int main(int argc, char *argv[]) {
QApplication a(argc, argv);
+#ifdef PORTABLE_CONFIG
int retCode = 1;
UpdateManager::setRetryFunction(updateRetryFunction);
if (UpdateManager::handleUpdateOptions(a.arguments(), retCode))
@@ -101,6 +103,7 @@ int main(int argc, char *argv[]) return retCode;
}
+#endif
qInstallMessageHandler(uiMessageHandler);
@@ -163,7 +166,9 @@ int main(int argc, char *argv[]) if (!dbToOpen.isNull())
MainWindow::getInstance()->openDb(dbToOpen);
+#ifdef PORTABLE_CONFIG
UPDATES->checkForUpdates();
+#endif
return a.exec();
}
|
