[dolphin] [Bug 477540] Dolphin crashed while opening a newly created video file

Méven Car bugzilla_noreply at kde.org
Sun Nov 26 14:52:42 GMT 2023


https://bugs.kde.org/show_bug.cgi?id=477540

Méven Car <meven29 at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |meven29 at gmail.com

--- Comment #3 from Méven Car <meven29 at gmail.com> ---
The issue comes from here:

```
#6  0x00007f760f2a8d24 in KItemListController::onRelease(QPointF const&,
QFlags<Qt::KeyboardModifier>, QFlags<Qt::MouseButton>, bool)
(this=this at entry=0x55bef7a92600, pos=..., modifiers=..., modifiers at entry=...,
buttons=buttons at entry=..., touch=touch at entry=false) at
/usr/src/debug/dolphin/dolphin-23.08.3/src/kitemviews/kitemlistcontroller.cpp:1779
        singleClickActivation = <optimized out>
        emitItemActivated = true
        isAboveSelectionToggle = <optimized out>
        controlPressed = <optimized out>
        shiftOrControlPressed = <optimized out>
        index = std::optional<int> = {[contained value] = 0}
        rubberBand = <optimized out>
        rubberBandRelease = <optimized out>
```

>From src/kitemviews/kitemlistcontroller.cpp:
```
        if (buttons & Qt::LeftButton) {
            bool emitItemActivated = true;
            if (m_view->isAboveExpansionToggle(index.value(), pos)) {
                const bool expanded = m_model->isExpanded(index.value());
                m_model->setExpanded(index.value(), !expanded);

                Q_EMIT itemExpansionToggleClicked(index.value());
                emitItemActivated = false;
            } else if (shiftOrControlPressed && m_selectionBehavior !=
SingleSelection) {
                // The mouse click should only update the selection, not
trigger the item, except when
                // we are in single selection mode
                emitItemActivated = false;
            } else {
#line 1779:
                const bool singleClickActivation =
m_view->style()->styleHint(QStyle::SH_ItemView_ActivateItemOnSingleClick) ||
m_singleClickActivationEnforced;
                if (!singleClickActivation) {
                    emitItemActivated = touch && !m_selectionMode;
                } else {
                    // activate on single click only if we didn't come from a
rubber band release
                    emitItemActivated = !rubberBandRelease;
                }
            }
````

m_view seems like it could be null, or m_view->style(), both make little sense
and should not be possible.

Do you use the folder panel ?

Do you use split view ?

What is the style you are using ?

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the kfm-devel mailing list