improve help implementation

This commit is contained in:
Geoffray Levasseur committed 2026-11-07 13:25:21 +01:00
1 parent 2dcc63875d
commit 9ef24e3a9e
10 files changed
+52 -26

No files matched your search

+2 -1
View File
@@ -1287,7 +1287,8 @@ void CityDlg::mousePressEvent(QMouseEvent *event)
int iix = imix[static_cast<std::size_t>(i)];
if (iix >= 0) {
if (shift) {
Help::showNewContent(windowModeMakePersistent(windowMode()), Help::LinkCategory::Imp, iix);
if (auto *dlg = Term::mainScreenHelpDlg())
dlg->showNewContent(windowModeMakePersistent(windowMode()), Help::LinkCategory::Imp, iix);
} else if (IsoEngine::clientMode < scContact) {
if (auto *dlg = Term::mainScreenMessgExDlg()) {
dlg->iconKind = MessgEx::MessageIconKind::Imp;