Skip to content

Commit 7f33d2c

Browse files
committed
[Qt, OSX] fix Qt4.8 compatibility with QProgressBar issue
1 parent a574189 commit 7f33d2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/qt/guiutil.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ namespace GUIUtil
189189
/* Format a CNodeCombinedStats.dPingTime into a user-readable string or display N/A, if 0*/
190190
QString formatPingTime(double dPingTime);
191191

192-
#ifdef Q_OS_MAC
192+
#if defined(Q_OS_MAC) && QT_VERSION > 0x050000
193193
// workaround for Qt OSX Bug:
194194
// https://bugreports.qt-project.org/browse/QTBUG-15631
195195
// QProgressBar uses around 10% CPU even when app is in background

0 commit comments

Comments
 (0)