mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-05 13:47:26 +02:00
Add workaround for Qt bug, thanks David Sansome!
This commit is contained in:
@@ -290,6 +290,16 @@ TomahawkApp::init()
|
|||||||
PlaylistUpdaterInterface::registerUpdaterFactory( new XspfUpdaterFactory );
|
PlaylistUpdaterInterface::registerUpdaterFactory( new XspfUpdaterFactory );
|
||||||
PlaylistUpdaterInterface::registerUpdaterFactory( new SpotifyUpdaterFactory );
|
PlaylistUpdaterInterface::registerUpdaterFactory( new SpotifyUpdaterFactory );
|
||||||
|
|
||||||
|
// Following work-around/fix taken from Clementine rev. 13e13ccd9a95 and courtesy of David Sansome
|
||||||
|
// A bug in Qt means the wheel_scroll_lines setting gets ignored and replaced
|
||||||
|
// with the default value of 3 in QApplicationPrivate::initialize.
|
||||||
|
{
|
||||||
|
QSettings qt_settings(QSettings::UserScope, "Trolltech");
|
||||||
|
qt_settings.beginGroup("Qt");
|
||||||
|
QApplication::setWheelScrollLines(
|
||||||
|
qt_settings.value("wheelScrollLines", QApplication::wheelScrollLines()).toInt());
|
||||||
|
}
|
||||||
|
|
||||||
#ifndef ENABLE_HEADLESS
|
#ifndef ENABLE_HEADLESS
|
||||||
// Make sure to init GAM in the gui thread
|
// Make sure to init GAM in the gui thread
|
||||||
GlobalActionManager::instance();
|
GlobalActionManager::instance();
|
||||||
|
Reference in New Issue
Block a user