diff --git a/src/app/application.cpp b/src/app/application.cpp index 6b332cf4e..2025f82b7 100644 --- a/src/app/application.cpp +++ b/src/app/application.cpp @@ -92,7 +92,6 @@ Application::Application(const QString &id, int &argc, char **argv) setApplicationName("qBittorrent"); initializeTranslation(); #ifndef DISABLE_GUI - setStyleSheet("QStatusBar::item { border-width: 0; }"); setQuitOnLastWindowClosed(false); #ifdef Q_OS_WIN connect(this, SIGNAL(commitDataRequest(QSessionManager &)), this, SLOT(shutdownCleanup(QSessionManager &)), Qt::DirectConnection); diff --git a/src/gui/statusbar.cpp b/src/gui/statusbar.cpp index 211ec7811..d5b954302 100644 --- a/src/gui/statusbar.cpp +++ b/src/gui/statusbar.cpp @@ -44,6 +44,8 @@ StatusBar::StatusBar(QStatusBar *bar) : m_bar(bar) { + qApp->setStyleSheet("QStatusBar::item { border-width: 0; }"); + Preferences* const pref = Preferences::instance(); connect(BitTorrent::Session::instance(), SIGNAL(speedLimitModeChanged(bool)), this, SLOT(updateAltSpeedsBtn(bool))); container = new QWidget(bar);