void MainWindow::on_actionChangeInstLWJGLVersion_triggered() { if (!m_selectedInstance) return; LWJGLSelectDialog lselect(this); lselect.exec(); if (lselect.result() == QDialog::Accepted) { LegacyInstance *linst = (LegacyInstance *)m_selectedInstance; linst->setLWJGLVersion(lselect.selectedVersion()); } }
void MainWindow::on_actionChangeInstLWJGLVersion_triggered() { if (!m_selectedInstance) return; LWJGLSelectDialog lselect(this); lselect.exec(); if (lselect.result() == QDialog::Accepted) { auto ptr = std::dynamic_pointer_cast<LegacyInstance>(m_selectedInstance); if(ptr) ptr->setLWJGLVersion(lselect.selectedVersion()); } }