From 5ba802c0ee87c14f217f067949bd5f44ea14ec67 Mon Sep 17 00:00:00 2001 From: Roy Qu Date: Wed, 21 Sep 2022 09:31:01 +0800 Subject: [PATCH] - fix: "Encode in UTF-8" is not correctly checked, when the editor is openned using UTF-8 encoding. --- NEWS.md | 4 ++++ RedPandaIDE/RedPandaIDE.pro | 2 +- RedPandaIDE/mainwindow.cpp | 2 +- Red_Panda_CPP.pro | 2 +- 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/NEWS.md b/NEWS.md index 96437694..6a8be917 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,3 +1,7 @@ +Red Panda C++ Version 1.4 + + - fix: "Encode in UTF-8" is not correctly checked, when the editor is openned using UTF-8 encoding. + Red Panda C++ Version 1.3 - enhancement: don't parse all openned files when start up diff --git a/RedPandaIDE/RedPandaIDE.pro b/RedPandaIDE/RedPandaIDE.pro index 260da8be..e63a7faa 100644 --- a/RedPandaIDE/RedPandaIDE.pro +++ b/RedPandaIDE/RedPandaIDE.pro @@ -10,7 +10,7 @@ isEmpty(APP_NAME) { } isEmpty(APP_VERSION) { - APP_VERSION=1.3 + APP_VERSION=1.4 } macos: { diff --git a/RedPandaIDE/mainwindow.cpp b/RedPandaIDE/mainwindow.cpp index e78005ac..66e74f38 100644 --- a/RedPandaIDE/mainwindow.cpp +++ b/RedPandaIDE/mainwindow.cpp @@ -395,7 +395,7 @@ void MainWindow::updateForEncodingInfo(bool clear) { ui->actionAuto_Detect->setChecked(editor->encodingOption() == ENCODING_AUTO_DETECT); ui->actionEncode_in_ANSI->setChecked(editor->encodingOption() == ENCODING_SYSTEM_DEFAULT); ui->actionEncode_in_UTF_8->setChecked(editor->encodingOption() == ENCODING_UTF8); - ui->actionEncode_in_UTF_8->setChecked(editor->encodingOption() == ENCODING_UTF8_BOM); + ui->actionEncode_in_UTF_8_BOM->setChecked(editor->encodingOption() == ENCODING_UTF8_BOM); } else { mFileEncodingStatus->setText(""); ui->actionAuto_Detect->setChecked(false); diff --git a/Red_Panda_CPP.pro b/Red_Panda_CPP.pro index 123ca3b0..13086d69 100644 --- a/Red_Panda_CPP.pro +++ b/Red_Panda_CPP.pro @@ -23,7 +23,7 @@ SUBDIRS += \ APP_NAME = RedPandaCPP -APP_VERSION = 1.3 +APP_VERSION = 1.4 linux: { isEmpty(PREFIX) {