diff options
author | Saturneric <[email protected]> | 2023-02-18 11:12:03 +0000 |
---|---|---|
committer | Saturneric <[email protected]> | 2023-02-18 11:12:03 +0000 |
commit | 3b062240c399bc7fb24fde3442db407386c17161 (patch) | |
tree | 06f41cd7928ae1f5ab2b935203d8399dab11373a /src/ui/widgets/PlainTextEditorPage.cpp | |
parent | fix: improve stability of the object-channel model (diff) | |
download | GpgFrontend-3b062240c399bc7fb24fde3442db407386c17161.tar.gz GpgFrontend-3b062240c399bc7fb24fde3442db407386c17161.zip |
fix: improve the task execution model
Diffstat (limited to 'src/ui/widgets/PlainTextEditorPage.cpp')
-rw-r--r-- | src/ui/widgets/PlainTextEditorPage.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/widgets/PlainTextEditorPage.cpp b/src/ui/widgets/PlainTextEditorPage.cpp index c97537c3..c9a65a4c 100644 --- a/src/ui/widgets/PlainTextEditorPage.cpp +++ b/src/ui/widgets/PlainTextEditorPage.cpp @@ -182,10 +182,10 @@ void PlainTextEditorPage::ReadFile() { connect(this, &PlainTextEditorPage::SignalUIBytesDisplayed, read_task, &FileReadTask::SignalFileBytesReadNext, Qt::QueuedConnection); - connect(read_task, &FileReadTask::SignalTaskFinished, this, + connect(read_task, &FileReadTask::SignalTaskRunnableEnd, this, []() { SPDLOG_DEBUG("read thread closed"); }); connect(this, &PlainTextEditorPage::close, read_task, - &FileReadTask::SignalTaskFinished); + [=]() { read_task->SignalTaskRunnableEnd(0); }); connect(read_task, &FileReadTask::SignalFileBytesReadEnd, this, [=]() { // set the UI if (!binary_mode_) text_page->setReadOnly(false); |