aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/main_window/MainWindowSlotUI.cpp
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2025-02-03 15:03:32 +0000
committersaturneric <[email protected]>2025-02-03 15:04:09 +0000
commitdd8bca46a64dc01ed5a914632b1176cfb4a4ef86 (patch)
tree9096b7c68533e77b824c9929d775ce60493eb4f7 /src/ui/main_window/MainWindowSlotUI.cpp
parentrefactor: make some function names shorter (diff)
downloadGpgFrontend-dd8bca46a64dc01ed5a914632b1176cfb4a4ef86.tar.gz
GpgFrontend-dd8bca46a64dc01ed5a914632b1176cfb4a4ef86.zip
feat: allow switch ascii mode at file page options
Diffstat (limited to 'src/ui/main_window/MainWindowSlotUI.cpp')
-rw-r--r--src/ui/main_window/MainWindowSlotUI.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/ui/main_window/MainWindowSlotUI.cpp b/src/ui/main_window/MainWindowSlotUI.cpp
index acc8f5a8..fd5c0d8f 100644
--- a/src/ui/main_window/MainWindowSlotUI.cpp
+++ b/src/ui/main_window/MainWindowSlotUI.cpp
@@ -200,10 +200,10 @@ void MainWindow::SlotUpdateCryptoMenuStatus(unsigned int type) {
void MainWindow::SlotGeneralEncrypt(bool) {
if (edit_->CurPageFileTreeView() != nullptr) {
- const auto* file_tree_view = edit_->CurPageFileTreeView();
- const auto paths = file_tree_view->GetSelected();
-
- this->SlotFileEncrypt(paths);
+ const auto* file_page = edit_->CurPageFileTreeView();
+ const auto paths = file_page->GetSelected();
+ this->SlotFileEncrypt(paths, file_page->IsASCIIMode());
+ return;
}
if (edit_->CurEMailPage() != nullptr) {
@@ -236,10 +236,10 @@ void MainWindow::SlotGeneralDecrypt(bool) {
void MainWindow::SlotGeneralSign(bool) {
if (edit_->CurPageFileTreeView() != nullptr) {
- const auto* file_tree_view = edit_->CurPageFileTreeView();
- const auto paths = file_tree_view->GetSelected();
-
- this->SlotFileSign(paths);
+ const auto* file_page = edit_->CurPageFileTreeView();
+ const auto paths = file_page->GetSelected();
+ this->SlotFileSign(paths, file_page->IsASCIIMode());
+ return;
}
if (edit_->CurEMailPage() != nullptr) {
@@ -268,10 +268,10 @@ void MainWindow::SlotGeneralVerify(bool) {
void MainWindow::SlotGeneralEncryptSign(bool) {
if (edit_->CurPageFileTreeView() != nullptr) {
- const auto* file_tree_view = edit_->CurPageFileTreeView();
- const auto paths = file_tree_view->GetSelected();
-
- this->SlotFileEncryptSign(paths);
+ const auto* file_page = edit_->CurPageFileTreeView();
+ const auto paths = file_page->GetSelected();
+ this->SlotFileEncryptSign(paths, file_page->IsASCIIMode());
+ return;
}
if (edit_->CurEMailPage() != nullptr) {