make map size customizable in star dialog
This commit is contained in:
1 parent
8606bf8bcc
commit
a564d06798
3 files changed
+17
-5
No files matched your search
@@ -354,10 +354,9 @@ void EnhanceDlg::keyPressEvent(QKeyEvent *event)
|
||||
{
|
||||
const QKeySequence pressed(event->key() | event->modifiers());
|
||||
if (KeyBindings::bHelp && pressed.matches(KeyBindings::bHelp->shortCut) == QKeySequence::ExactMatch) {
|
||||
// TODO: needs a live HelpDlg instance's textIndex() (Term.pas's
|
||||
// MainScreen.HelpDlg isn't ported yet) - placeholder text index.
|
||||
if (auto *dlg = Term::mainScreenHelpDlg())
|
||||
dlg->showNewContent(windowModeMakePersistent(windowMode()), Help::LinkCategory::Text, 0);
|
||||
dlg->showNewContent(windowModeMakePersistent(windowMode()), Help::LinkCategory::Text,
|
||||
dlg->textIndex(QStringLiteral("MACRO")));
|
||||
} else
|
||||
FramedDlg::keyPressEvent(event);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user