Skip to content

Commit 725c072

Browse files
authored
Merge pull request #539 from ghutchis/try-windows-ogl-context
Add version information to the avogadro2.log on Windows
2 parents d7a2941 + c9034e8 commit 725c072

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

avogadro/avogadro.cpp

+10
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,13 @@
2020

2121
// install a message handler (for Windows)
2222
#include <QFile>
23+
#include <QSslSocket>
2324
#include <QTextStream>
2425

26+
#include <avogadro/core/version.h>
27+
2528
#include "application.h"
29+
#include "avogadroappconfig.h"
2630
#include "mainwindow.h"
2731

2832
#ifdef Q_OS_MAC
@@ -125,6 +129,12 @@ int main(int argc, char* argv[])
125129
qInstallMessageHandler(myMessageOutput);
126130
#endif
127131

132+
// output the version information
133+
qDebug() << "Avogadroapp version: " << AvogadroApp_VERSION;
134+
qDebug() << "Avogadrolibs version: " << Avogadro::version();
135+
qDebug() << "Qt version: " << qVersion();
136+
qDebug() << "SSL version: " << QSslSocket::sslLibraryVersionString();
137+
128138
Avogadro::Application app(argc, argv);
129139

130140
QSettings settings;

0 commit comments

Comments
 (0)