]> cloud.milkyroute.net Git - dolphin.git/commitdiff
DolphinView: initialize m_controlWheelAccumulatedDelta
authorAmol Godbole <amolagodbole@gmail.com>
Thu, 3 Aug 2023 10:44:20 +0000 (10:44 +0000)
committerMéven Car <meven.car@kdemail.net>
Thu, 3 Aug 2023 10:44:20 +0000 (10:44 +0000)
Ctrl + scroll wheel zoom was not working as designed after Dolphin is launched. Initialize m_controlWheelAccumulatedDelta in DolphinView's constructor.

BUG: 469354

src/views/dolphinview.cpp

index fba7e64199322a33c503df4883e1ce3394ba93a6..13c8b4df26d6315a860392125c66a5ea6c224373 100644 (file)
@@ -92,6 +92,7 @@ DolphinView::DolphinView(const QUrl &url, QWidget *parent)
     , m_currentItemUrl()
     , m_scrollToCurrentItem(false)
     , m_restoredContentsPosition()
+    , m_controlWheelAccumulatedDelta(0)
     , m_selectedUrls()
     , m_clearSelectionBeforeSelectingNewItems(false)
     , m_markFirstNewlySelectedItemAsCurrent(false)