From e4dde8ebd4dabc0084f4690d69cffdc11a7855b1 Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Tue, 25 Jul 2023 23:15:19 -0400 Subject: [PATCH] fix shortcut implementation for log windows --- tools/lammps-gui/lammpsgui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/lammps-gui/lammpsgui.cpp b/tools/lammps-gui/lammpsgui.cpp index ffbfc73bb6..6dfe7f71be 100644 --- a/tools/lammps-gui/lammpsgui.cpp +++ b/tools/lammps-gui/lammpsgui.cpp @@ -210,7 +210,7 @@ void LammpsGui::run_buffer() box->setLineWrapMode(QPlainTextEdit::NoWrap); box->setMinimumSize(800, 600); QShortcut *shortcut = new QShortcut(QKeySequence(Qt::CTRL + Qt::Key_W), box); -// QObject::connect(shortcut, &QShortcut::activated, box, &QPlainTextEdit::close()); + QObject::connect(shortcut, &QShortcut::activated, box, &QPlainTextEdit::close); box->show();