lightpreview: handle settings::quit_after_help_exception

This commit is contained in:
Eric Wasylishen 2023-06-11 23:19:42 -06:00
parent 0dfb4e52ab
commit e9ba89e45f
1 changed files with 3 additions and 0 deletions

View File

@ -570,6 +570,9 @@ void MainWindow::loadFileInternal(const QString &file, bool is_reload)
} catch (const settings::parse_exception &p) {
m_outputTextEdit->append(QString::fromUtf8(p.what()) + QString::fromLatin1("\n"));
return;
} catch (const settings::quit_after_help_exception &p) {
m_outputTextEdit->append(QString::fromUtf8(p.what()) + QString::fromLatin1("\n"));
d return;
}
const auto &bsp = std::get<mbsp_t>(m_bspdata.bsp);