diff options
author | saturneric <[email protected]> | 2024-01-12 15:08:38 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2024-01-12 15:08:38 +0000 |
commit | 6983b5c1dd82d159236ebd06cf17f071cc9c1ee9 (patch) | |
tree | fc53f790e33546320b2ecd306a1a9ade6fbdfe7a /src/ui/dialog/details/VerifyDetailsDialog.cpp | |
parent | fix: slove a heap-use-after-free issue (diff) | |
download | GpgFrontend-6983b5c1dd82d159236ebd06cf17f071cc9c1ee9.tar.gz GpgFrontend-6983b5c1dd82d159236ebd06cf17f071cc9c1ee9.zip |
refactor: remove boost and use QString instead of std::filesystem::path
Diffstat (limited to 'src/ui/dialog/details/VerifyDetailsDialog.cpp')
-rw-r--r-- | src/ui/dialog/details/VerifyDetailsDialog.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/ui/dialog/details/VerifyDetailsDialog.cpp b/src/ui/dialog/details/VerifyDetailsDialog.cpp index 00251d4a..ba23b2c6 100644 --- a/src/ui/dialog/details/VerifyDetailsDialog.cpp +++ b/src/ui/dialog/details/VerifyDetailsDialog.cpp @@ -64,8 +64,7 @@ void VerifyDetailsDialog::slot_refresh() { } // Get timestamp of signature of current text - QDateTime timestamp; - timestamp.setSecsSinceEpoch(to_time_t(signatures[0].GetCreateTime())); + QDateTime timestamp = signatures[0].GetCreateTime(); // Set the title widget depending on sign status if (gpg_err_code(signatures[0].GetStatus()) == GPG_ERR_BAD_SIGNATURE) { @@ -77,7 +76,7 @@ void VerifyDetailsDialog::slot_refresh() { m_vbox_layout->addWidget(new QLabel(info)); } else { const auto info = - QString(_("Signed on %1%")).arg(QLocale::system().toString(timestamp)) + + QString(_("Signed on %1")).arg(QLocale::system().toString(timestamp)) + "<br/>" + _("It Contains") + ": " + "<br/><br/>"; m_vbox_layout->addWidget(new QLabel(info)); } |