Commit fb58c5fc authored by Tobias WEBER's avatar Tobias WEBER

initialisation order

parent 8c192fe5
......@@ -1182,14 +1182,12 @@ void MolDynDlg::keyPressEvent(QKeyEvent *evt)
int main(int argc, char** argv)
{
set_gl_format(1, _GL_MAJ_VER, _GL_MIN_VER, 8);
set_gl_format(1, _GL_MAJ_VER, _GL_MIN_VER, 0);
tl2::set_locales();
QApplication::addLibraryPath(QApplication::applicationDirPath());
QApplication::addLibraryPath(QApplication::applicationDirPath() + QDir::separator() + "qtplugins");
QApplication::addLibraryPath(QString(".") + QDir::separator() + "qtplugins");
auto app = std::make_unique<QApplication>(argc, argv);
QApplication::addLibraryPath(QApplication::applicationDirPath() + QDir::separator() + "qtplugins");
auto dlg = std::make_unique<MolDynDlg>(nullptr);
dlg->show();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment