| 1785 | } |
| 1786 | |
| 1787 | void MainWindow::on_actionViewSelectedModsFolder_triggered() |
| 1788 | { |
| 1789 | if (m_selectedInstance) |
| 1790 | { |
| 1791 | QString str = m_selectedInstance->modsRoot(); |
| 1792 | if (!FS::ensureFilePathExists(str)) |
| 1793 | { |
| 1794 | // TODO: report error |
| 1795 | return; |
| 1796 | } |
| 1797 | DesktopServices::openDirectory(QDir(str).absolutePath()); |
| 1798 | } |
| 1799 | } |
| 1800 | |
| 1801 | void MainWindow::closeEvent(QCloseEvent *event) |
| 1802 | { |
nothing calls this directly
no test coverage detected