aboutsummaryrefslogtreecommitdiffstats
path: root/subsurface-desktop-main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'subsurface-desktop-main.cpp')
-rw-r--r--subsurface-desktop-main.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/subsurface-desktop-main.cpp b/subsurface-desktop-main.cpp
index 58da1fa43..5b8424487 100644
--- a/subsurface-desktop-main.cpp
+++ b/subsurface-desktop-main.cpp
@@ -33,18 +33,20 @@ static void messageHandler(QtMsgType type, const QMessageLogContext &ctx, const
int main(int argc, char **argv)
{
+ subsurface_console_init();
+ qInstallMessageHandler(messageHandler);
+ if (verbose) /* print the version if the Win32 console_init() code enabled verbose. */
+ print_version();
+
int i;
bool no_filenames = true;
QLoggingCategory::setFilterRules(QStringLiteral("qt.bluetooth* = true"));
- qInstallMessageHandler(messageHandler);
QApplication *application = new QApplication(argc, argv);
(void)application;
QStringList files;
QStringList importedFiles;
QStringList arguments = QCoreApplication::arguments();
- subsurface_console_init();
-
const char *default_directory = system_default_directory();
const char *default_filename = system_default_filename();
subsurface_mkdir(default_directory);