From eaee2aa9f0e71b9960da586f425f79e628013021 Mon Sep 17 00:00:00 2001 From: Pumba98 Date: Sun, 3 Nov 2019 13:51:07 +0100 Subject: [PATCH] fix NSgtdData bugs --- Source/MainWindow.h | 2 +- Source/Ui/TreeItems/OnexTreeText.cpp | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Source/MainWindow.h b/Source/MainWindow.h index 461ebf7..cdf82bf 100644 --- a/Source/MainWindow.h +++ b/Source/MainWindow.h @@ -22,7 +22,7 @@ Q_OBJECT public: explicit MainWindow(QWidget *parent = nullptr); ~MainWindow() override; - const QString VERSION = "v0.7"; + const QString VERSION = "v0.7.1"; public slots: void on_actionOpen_triggered(); void on_treeWidget_currentItemChanged(QTreeWidgetItem *current, QTreeWidgetItem *prev); diff --git a/Source/Ui/TreeItems/OnexTreeText.cpp b/Source/Ui/TreeItems/OnexTreeText.cpp index 68a4b86..8409e35 100644 --- a/Source/Ui/TreeItems/OnexTreeText.cpp +++ b/Source/Ui/TreeItems/OnexTreeText.cpp @@ -99,8 +99,11 @@ QString OnexTreeText::getEncoding() { return "Windows-1250"; else if (region == "ru") return "Windows-1251"; - else if (region == "en" || region == "fr" || region == "es") + else if (region == "uk" || region == "fr" || region == "es") return "Windows-1252"; else if (region == "tr") return "Windows-1254"; + else if (region == "hk" || region == "tw") + return "Big5"; + return "Windows-1250"; }