From 50f942c880677f2ebcc60d13871fcbb65f4fb3e4 Mon Sep 17 00:00:00 2001 From: xomx Date: Wed, 12 Jul 2023 17:01:40 +0200 Subject: [PATCH] Fix MD5 dialog title not showing regression One had to click on the Tools -> MD5 -> Generate from files... twice for showing up the dialog (only for the first time, next time it was ok). Caused by the previous 'Add SHA-512 hash features' commit. Close #13891 --- PowerEditor/src/MISC/md5/md5Dlgs.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/PowerEditor/src/MISC/md5/md5Dlgs.cpp b/PowerEditor/src/MISC/md5/md5Dlgs.cpp index 555ffd148..9cd821902 100644 --- a/PowerEditor/src/MISC/md5/md5Dlgs.cpp +++ b/PowerEditor/src/MISC/md5/md5Dlgs.cpp @@ -245,6 +245,13 @@ void HashFromFilesDlg::doDialog(bool isRTL) switch (_ht) { + case hash_md5: + { + title = TEXT("Generate MD5 digest from files"); + buttonText = TEXT("Choose files to &generate MD5..."); + } + break; + case hash_sha1: { title = TEXT("Generate SHA-1 digest from files"); @@ -566,6 +573,12 @@ void HashFromTextDlg::doDialog(bool isRTL) std::wstring title; switch (_ht) { + case hash_md5: + { + title = TEXT("Generate MD5 digest"); + } + break; + case hash_sha1: { title = TEXT("Generate SHA-1 digest");