aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerald Combs <gerald@zing.org>2014-02-11 11:45:30 -0800
committerGerald Combs <gerald@wireshark.org>2014-02-11 19:46:10 +0000
commit648769497a15ffcb8ad42f19b2429b5764f64c38 (patch)
treec4bd44360a92de0c664ef1a04ed7f5d9ec54df56
parentedc06c17e7279bc88e7c8e8fcf94e53bd57c0246 (diff)
Fix a Qt version comparison.
Change-Id: I7df90d53a2d8f29042994bd0c2bc7bf4450fab10 Reviewed-on: https://code.wireshark.org/review/177 Reviewed-by: Gerald Combs <gerald@wireshark.org>
-rw-r--r--ui/qt/main_window.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/qt/main_window.cpp b/ui/qt/main_window.cpp
index 6ad5316673..780e9615f3 100644
--- a/ui/qt/main_window.cpp
+++ b/ui/qt/main_window.cpp
@@ -64,7 +64,7 @@
#include <QToolButton>
#include <QTreeWidget>
-#if defined(QT_MACEXTRAS_LIB) && QT_VERSION <= QT_VERSION_CHECK(5, 2, 1)
+#if defined(QT_MACEXTRAS_LIB) && QT_VERSION < QT_VERSION_CHECK(5, 2, 1)
#include <QtMacExtras/QMacNativeToolBar>
#endif
@@ -160,7 +160,7 @@ MainWindow::MainWindow(QWidget *parent) :
#endif
#if defined(Q_OS_MAC)
-#if defined(QT_MACEXTRAS_LIB) && QT_VERSION <= QT_VERSION_CHECK(5, 2, 1)
+#if defined(QT_MACEXTRAS_LIB) && QT_VERSION < QT_VERSION_CHECK(5, 2, 1)
QMacNativeToolBar *ntb = QtMacExtras::setNativeToolBar(main_ui_->mainToolBar);
ntb->setIconSize(QSize(24, 24));
#endif // QT_MACEXTRAS_LIB