aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/dialog/keypair_details/KeyPairOperaTab.cpp
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2024-01-31 05:57:48 +0000
committersaturneric <[email protected]>2024-01-31 05:57:48 +0000
commit01dfc8df4f019e439e7b3e774ef3a02a2a908de2 (patch)
tree68fda3203652e01136e90e4944e190e8a5d41c51 /src/ui/dialog/keypair_details/KeyPairOperaTab.cpp
parentfeat: try to add qt5 support (diff)
downloadGpgFrontend-01dfc8df4f019e439e7b3e774ef3a02a2a908de2.tar.gz
GpgFrontend-01dfc8df4f019e439e7b3e774ef3a02a2a908de2.zip
feat: support qt5 build option
Diffstat (limited to '')
-rw-r--r--src/ui/dialog/keypair_details/KeyPairOperaTab.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ui/dialog/keypair_details/KeyPairOperaTab.cpp b/src/ui/dialog/keypair_details/KeyPairOperaTab.cpp
index 6e4a1df0..74f827aa 100644
--- a/src/ui/dialog/keypair_details/KeyPairOperaTab.cpp
+++ b/src/ui/dialog/keypair_details/KeyPairOperaTab.cpp
@@ -432,7 +432,12 @@ void KeyPairOperaTab::slot_import_revoke_cert() {
}
QFile rev_file(rev_file_info.absoluteFilePath());
+
+#ifdef QT5_BUILD
+ if (!rev_file.open(QIODevice::ReadOnly)) {
+#else
if (!rev_file.open(QIODeviceBase::ReadOnly)) {
+#endif
QMessageBox::critical(
this, tr("Error"),
tr("Cannot open this file. Please make sure that this "