Skip to content

Commit

Permalink
disable ssh offloading to other thread
Browse files Browse the repository at this point in the history
  • Loading branch information
lievenhey committed Dec 7, 2022
1 parent 6260652 commit 5b5eadc
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions src/recordpage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ void rememberApplication(const QString& application, const QString& appParameter
rememberCombobox(config(), QStringLiteral("applications"), application, combo);
}
}

#include <QThread>
RecordPage::RecordPage(QWidget* parent)
: QWidget(parent)
, ui(new Ui::RecordPage)
Expand Down Expand Up @@ -395,18 +395,19 @@ RecordPage::RecordPage(QWidget* parent)
geometry.moveCenter(rect().center());
m_loadingIndicator->setGeometry(geometry);

stream() << make_job([this, index, perfRecordChanged] {
m_loadingIndicator->setVisible(true);
if (index == 0) {
m_perfRecord = new PerfRecord(this);
} else {
auto recordSsh = new PerfRecordSSH(this);
m_perfRecord = recordSsh;
}
perfRecordChanged();

m_loadingIndicator->setVisible(false);
});
// stream() << make_job([this, index, perfRecordChanged] {
m_loadingIndicator->setVisible(true);
if (index == 0) {
m_perfRecord = new PerfRecord(this);
} else {
auto recordSsh = new PerfRecordSSH(this);
recordSsh->setDeviceName(ui->remoteTargetComboBox->currentText());
m_perfRecord = recordSsh;
}
perfRecordChanged();

m_loadingIndicator->setVisible(false);
//});
});

m_processModel = new ProcessModel(this);
Expand Down

0 comments on commit 5b5eadc

Please sign in to comment.