From b323c4e6be47a3695dde72151e518cc6c6f46913 Mon Sep 17 00:00:00 2001 From: jagannatharjun Date: Sat, 1 Aug 2020 01:37:08 +0530 Subject: [PATCH] Set stylesheet of target widget rather then defining global stylesheet --- src/gui/statusbar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/statusbar.cpp b/src/gui/statusbar.cpp index 3e566b951..3dbbf14f6 100644 --- a/src/gui/statusbar.cpp +++ b/src/gui/statusbar.cpp @@ -49,7 +49,7 @@ StatusBar::StatusBar(QWidget *parent) #ifndef Q_OS_MACOS // Redefining global stylesheet breaks certain elements on mac like tabs. // Qt checks whether the stylesheet class inherts("QMacStyle") and this becomes false. - qApp->setStyleSheet("QStatusBar::item { border-width: 0; }"); + setStyleSheet("QStatusBar::item { border-width: 0; }"); #endif BitTorrent::Session *const session = BitTorrent::Session::instance();