diff --git a/GUI/mainwindow.cpp b/GUI/mainwindow.cpp index 485d602..6adefdf 100644 --- a/GUI/mainwindow.cpp +++ b/GUI/mainwindow.cpp @@ -38,6 +38,7 @@ MainWindow::MainWindow(QWidget *parent) : ui->processLayout->addItem(new QSpacerItem(0, 0, QSizePolicy::Minimum, QSizePolicy::Expanding)); connect(ui->ttCombo, qOverload(&QComboBox::activated), this, &MainWindow::ViewThread); + connect(ui->textOutput, &QPlainTextEdit::selectionChanged, [this] { if (!(QApplication::mouseButtons() & Qt::LeftButton)) ui->textOutput->copy(); }); QSettings settings(CONFIG_FILE, QSettings::IniFormat); if (settings.contains(WINDOW)) setGeometry(settings.value(WINDOW).toRect());