diff options
author | saturneric <[email protected]> | 2025-01-26 18:40:43 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2025-01-26 18:40:43 +0000 |
commit | 731ec7339dc6f251a814d4aef59c05b1900ecf3f (patch) | |
tree | 3c0abf0dafb81578c97c0c9d169acbff99cb94d0 /src/ui/main_window/MainWindowFileSlotFunction.cpp | |
parent | fix: optimums unknown fpr verifying helper (diff) | |
download | GpgFrontend-731ec7339dc6f251a814d4aef59c05b1900ecf3f.tar.gz GpgFrontend-731ec7339dc6f251a814d4aef59c05b1900ecf3f.zip |
fix: improve code compatibility
Diffstat (limited to 'src/ui/main_window/MainWindowFileSlotFunction.cpp')
-rw-r--r-- | src/ui/main_window/MainWindowFileSlotFunction.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/ui/main_window/MainWindowFileSlotFunction.cpp b/src/ui/main_window/MainWindowFileSlotFunction.cpp index baf21396..7958505b 100644 --- a/src/ui/main_window/MainWindowFileSlotFunction.cpp +++ b/src/ui/main_window/MainWindowFileSlotFunction.cpp @@ -45,7 +45,7 @@ namespace GpgFrontend::UI { -auto MainWindow::check_read_file_paths_helper(const QContainer<QString>& paths) +auto MainWindow::check_read_file_paths_helper(const QStringList& paths) -> bool { QStringList invalid_files; for (const auto& path : paths) { @@ -70,8 +70,8 @@ auto MainWindow::check_read_file_paths_helper(const QContainer<QString>& paths) return true; } -auto MainWindow::check_write_file_paths_helper( - const QContainer<QString>& o_paths) -> bool { +auto MainWindow::check_write_file_paths_helper(const QStringList& o_paths) + -> bool { for (const auto& o_path : o_paths) { if (QFile::exists(o_path)) { auto out_file_name = tr("The target file %1 already exists, " @@ -303,7 +303,7 @@ void MainWindow::build_operas_directory_encrypt( } } -void MainWindow::SlotFileEncrypt(const QContainer<QString>& paths) { +void MainWindow::SlotFileEncrypt(const QStringList& paths) { auto contexts = QSharedPointer<GpgOperaContexts>::create(); bool const non_ascii_at_file_operation = @@ -456,7 +456,7 @@ void MainWindow::build_operas_archive_decrypt( } } -void MainWindow::SlotFileDecrypt(const QContainer<QString>& paths) { +void MainWindow::SlotFileDecrypt(const QStringList& paths) { auto contexts = QSharedPointer<GpgOperaContexts>::create(); contexts->ascii = true; @@ -530,7 +530,7 @@ void MainWindow::build_operas_file_sign( } } -void MainWindow::SlotFileSign(const QContainer<QString>& paths) { +void MainWindow::SlotFileSign(const QStringList& paths) { auto contexts = QSharedPointer<GpgOperaContexts>::create(); bool const non_ascii_at_file_operation = @@ -612,7 +612,7 @@ void MainWindow::build_operas_file_verify( } } -void MainWindow::SlotFileVerify(const QContainer<QString>& paths) { +void MainWindow::SlotFileVerify(const QStringList& paths) { auto contexts = QSharedPointer<GpgOperaContexts>::create(); if (!check_read_file_paths_helper(paths)) return; @@ -764,7 +764,7 @@ void MainWindow::build_operas_directory_encrypt_sign( } } -void MainWindow::SlotFileEncryptSign(const QContainer<QString>& paths) { +void MainWindow::SlotFileEncryptSign(const QStringList& paths) { auto contexts = QSharedPointer<GpgOperaContexts>::create(); bool const non_ascii_at_file_operation = @@ -937,7 +937,7 @@ void MainWindow::build_operas_archive_decrypt_verify( } } -void MainWindow::SlotFileDecryptVerify(const QContainer<QString>& paths) { +void MainWindow::SlotFileDecryptVerify(const QStringList& paths) { auto contexts = QSharedPointer<GpgOperaContexts>::create(); contexts->ascii = true; |