aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2016-06-13 11:17:48 -0700
committerGerald Combs <gerald@wireshark.org>2016-06-13 19:26:35 +0000
commit34cacfc6a639cdadd69395978df0653e20576572 (patch)
treedcb9408504bab768362ff625c9d2736b0efeac16
parentb8201aef9d3375dfaaa31aa00ea4686d91c2cf03 (diff)
Qt: Fix a Windows version check.
Fetch the version using QSysInfo::windowsVersion. Ping-Bug: 12010 Change-Id: If63c576ec4f56f34b76f320cdd927bee427c8cb7 Reviewed-on: https://code.wireshark.org/review/15876 Petri-Dish: Gerald Combs <gerald@wireshark.org> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Gerald Combs <gerald@wireshark.org>
-rw-r--r--ui/qt/packet_list.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/qt/packet_list.cpp b/ui/qt/packet_list.cpp
index ebb8eb26b9..6acc0e8666 100644
--- a/ui/qt/packet_list.cpp
+++ b/ui/qt/packet_list.cpp
@@ -386,7 +386,7 @@ PacketList::PacketList(QWidget *parent) :
bool style_inactive_selected = true;
#ifdef Q_OS_WIN // && Qt version >= 4.8.6
- if (QSysInfo::WinVersion() < QSysInfo::WV_WINDOWS8) {
+ if (QSysInfo::windowsVersion() < QSysInfo::WV_WINDOWS8) {
// See if we're running Vista or 7 and we have a theme applied.
HMODULE uxtheme_lib = (HMODULE) ws_load_library("uxtheme.dll");