From 0f464081971569d9ec6f621cfecdb39a5b8ee2b9 Mon Sep 17 00:00:00 2001 From: Saturneric Date: Sun, 2 Jan 2022 15:07:19 +0800 Subject: (core, ui): add & modify file operations 1. add non ascii mode for file operations. 2. the suffix of normalized file encryption. 3. refactor general settings. --- src/ui/main_window/MainWindowSlotFunction.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/ui/main_window/MainWindowSlotFunction.cpp') diff --git a/src/ui/main_window/MainWindowSlotFunction.cpp b/src/ui/main_window/MainWindowSlotFunction.cpp index 9dd3e5cf..67ade3ae 100644 --- a/src/ui/main_window/MainWindowSlotFunction.cpp +++ b/src/ui/main_window/MainWindowSlotFunction.cpp @@ -129,7 +129,9 @@ void MainWindow::slotSign() { auto key_ids = mKeyList->getPrivateChecked(); if (key_ids->empty()) { - QMessageBox::critical(this, _("No Key Selected"), _("No Key Selected")); + QMessageBox::critical( + this, _("No Key Selected"), + _("Please select the key in the key toolbox on the right.")); return; } @@ -270,7 +272,9 @@ void MainWindow::slotEncryptSign() { auto key_ids = mKeyList->getChecked(); if (key_ids->empty()) { - QMessageBox::critical(nullptr, _("No Key Selected"), _("No Key Selected")); + QMessageBox::critical( + nullptr, _("No Key Selected"), + _("Please select the key in the key toolbox on the right.")); return; } -- cgit v1.2.3