diff --git a/src/qt/bitcoingui.cpp b/src/qt/bitcoingui.cpp index cb4b2d54ce..bb46a4ea26 100644 --- a/src/qt/bitcoingui.cpp +++ b/src/qt/bitcoingui.cpp @@ -279,6 +279,12 @@ std::string FromQString(QString qs) void BitcoinGUI::setOptionsStyleSheet(QString qssFileName) { + // Applying a stylesheet can be rather expensive on a wallet with many + // transactions. Avoid reloading styles if the theme didn't change: + if (qssFileName == sSheet) { + return; + } + // setting the style sheets for the app QFile qss(":/stylesheets/"+qssFileName); if (qss.open(QIODevice::ReadOnly)){