Remove duplicate call to QApplicationPrivate::setPalette_helper

initSystemPalette() already takes care of this.

Change-Id: I6521763a74ec3ec629d9fcf05aa2a7cd71a7f26d
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
Tor Arne Vestbø 2019-06-21 13:19:45 +02:00
parent cbb0295f7b
commit ed00e3093b
1 changed files with 0 additions and 1 deletions

View File

@ -1156,7 +1156,6 @@ void QApplication::setStyle(QStyle *style)
clearSystemPalette();
initSystemPalette();
QApplicationPrivate::initializeWidgetFontHash();
QApplicationPrivate::setPalette_helper(*QApplicationPrivate::sys_pal, /*className=*/0, /*clearWidgetPaletteHash=*/false);
} else if (!QApplicationPrivate::sys_pal) {
// Initialize the sys_pal if it hasn't happened yet...
QApplicationPrivate::setSystemPalette(QApplicationPrivate::app_style->standardPalette());