summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Markmann <tm@ayena.de>2012-09-02 12:30:24 (GMT)
committerKevin Smith <git@kismith.co.uk>2012-09-02 17:32:02 (GMT)
commit10e368538ec36b6a5f0c115196fb1177d547a64a (patch)
tree3adf47ff4d72dcd80306e4f556aa1444357fa3c0 /Swift/QtUI/QtMainWindow.cpp
parentabf10a2c0200819f6bb99366220f4c7566c01028 (diff)
downloadswift-contrib-10e368538ec36b6a5f0c115196fb1177d547a64a.zip
swift-contrib-10e368538ec36b6a5f0c115196fb1177d547a64a.tar.bz2
Adding Qt based certificate viewer as fallback for Linux.
License: This patch is BSD-licensed, see http://www.opensource.org/licenses/bsd-license.php
Diffstat (limited to 'Swift/QtUI/QtMainWindow.cpp')
-rw-r--r--Swift/QtUI/QtMainWindow.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/Swift/QtUI/QtMainWindow.cpp b/Swift/QtUI/QtMainWindow.cpp
index ced375f..5d50c1e 100644
--- a/Swift/QtUI/QtMainWindow.cpp
+++ b/Swift/QtUI/QtMainWindow.cpp
@@ -41,6 +41,8 @@
#include <Swift/QtUI/CocoaUIHelpers.h>
#elif defined(SWIFTEN_PLATFORM_WINDOWS)
#include <Swift/QtUI/WinUIHelpers.h>
+#else
+#include <Swift/QtUI/QtCertificateViewerDialog.h>
#endif
namespace Swift {
@@ -309,7 +311,7 @@ void QtMainWindow::openCertificateDialog(const std::vector<Certificate::ref>& ch
#elif defined(SWIFTEN_PLATFORM_WINDOWS)
WinUIHelpers::displayCertificateChainAsSheet(parent, chain);
#else
-#pragma message ("No certificate dialog available on this platform.")
+ QtCertificateViewerDialog::displayCertificateChainAsSheet(parent, chain);
#endif
}