diff options
Diffstat (limited to 'src/ui/dialog/keypair_details/KeyPairOperaTab.cpp')
-rw-r--r-- | src/ui/dialog/keypair_details/KeyPairOperaTab.cpp | 5 |
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 " |