diff options
author | Saturneric <[email protected]> | 2022-03-13 12:29:35 +0000 |
---|---|---|
committer | Saturneric <[email protected]> | 2022-03-13 12:29:35 +0000 |
commit | e43655f386272951b1c60bac93fe5dceec8d7e61 (patch) | |
tree | 86d8b1e3df879dd632c2efe2b52ecbe2bfb92577 /src/ui/main_window/MainWindowSlotFunction.cpp | |
parent | <fix>(ci): update ci file for mac (diff) | |
download | GpgFrontend-e43655f386272951b1c60bac93fe5dceec8d7e61.tar.gz GpgFrontend-e43655f386272951b1c60bac93fe5dceec8d7e61.zip |
<fix>(ui): Fix the problem that the file cannot be signed
Diffstat (limited to 'src/ui/main_window/MainWindowSlotFunction.cpp')
-rw-r--r-- | src/ui/main_window/MainWindowSlotFunction.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ui/main_window/MainWindowSlotFunction.cpp b/src/ui/main_window/MainWindowSlotFunction.cpp index 9a05cdc6..f25d696a 100644 --- a/src/ui/main_window/MainWindowSlotFunction.cpp +++ b/src/ui/main_window/MainWindowSlotFunction.cpp @@ -134,7 +134,10 @@ void MainWindow::slot_encrypt() { } void MainWindow::slot_sign() { - if (edit_->TabCount() == 0 || edit_->SlotCurPageTextEdit() == nullptr) return; + if (edit_->TabCount() == 0 || edit_->SlotCurPageTextEdit() == nullptr) { + if (edit_->SlotCurPageFileTreeView() != nullptr) this->SlotFileSign(); + return; + } auto key_ids = m_key_list_->GetPrivateChecked(); |