aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/widgets/PlainTextEditorPage.cpp
diff options
context:
space:
mode:
authorSaturneric <[email protected]>2022-01-23 07:36:55 +0000
committerSaturneric <[email protected]>2022-01-23 07:38:54 +0000
commit247b5b8f7ffb5cf7df5d4bc0e4fb786152934569 (patch)
treedaa5b6f39a1a4c07d4fa10a478d159e17059609c /src/ui/widgets/PlainTextEditorPage.cpp
parent<refactor>(ui): tidy up codes and comments. (diff)
downloadGpgFrontend-247b5b8f7ffb5cf7df5d4bc0e4fb786152934569.tar.gz
GpgFrontend-247b5b8f7ffb5cf7df5d4bc0e4fb786152934569.zip
<refactor>(ui): tidy up codes and comments.
1. tidy up thread.
Diffstat (limited to 'src/ui/widgets/PlainTextEditorPage.cpp')
-rw-r--r--src/ui/widgets/PlainTextEditorPage.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/widgets/PlainTextEditorPage.cpp b/src/ui/widgets/PlainTextEditorPage.cpp
index db85f251..ee08fff3 100644
--- a/src/ui/widgets/PlainTextEditorPage.cpp
+++ b/src/ui/widgets/PlainTextEditorPage.cpp
@@ -142,10 +142,10 @@ void PlainTextEditorPage::ReadFile() {
text_page->setReadOnly(true);
auto thread = new FileReadThread(this->full_file_path_.toStdString());
- connect(thread, &FileReadThread::sendReadBlock, this,
+ connect(thread, &FileReadThread::SignalSendReadBlock, this,
&PlainTextEditorPage::slotInsertText);
- connect(thread, &FileReadThread::readDone, this, [=]() {
+ connect(thread, &FileReadThread::SignalReadDone, this, [=]() {
LOG(INFO) << "thread read done";
if (!binary_mode_) {
text_page->setReadOnly(false);