[dolphin] [Bug 462046] `Segmentation fault` when launching `dolphin --split` with more than two arguments

Méven <[email protected]>
Newsgroups gmane.comp.kde.devel.kfm
Message-ID <[email protected]/>
https://bugs.kde.org/show_bug.cgi?id=462046

Méven <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Latest Commit|                            |https://invent.kde.org/syst
                   |                            |em/dolphin/-/commit/60cc399
                   |                            |30f1b0a78280712c8fe1447e919
                   |                            |f018f8
             Status|REPORTED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #3 from Méven <[email protected]> ---
Git commit 60cc39930f1b0a78280712c8fe1447e919f018f8 by Méven Car, on behalf of
Gleb Kasachou.
Committed on 26/08/2025 at 09:31.
Pushed by felixernst into branch 'master'.

DolphinTabWidget: Fix segfault when restoring session

When a session is being restored, DolphinTabPage::setSplitViewEnabled()
is called for each tab. That function assumes the tab page's
m_navigatorsWidget is a valid pointer, which is true only for an active
tab. That causes a segmentation fault when Dolphin is launched from the
command line with more than two URLs and the --split flag.

This commit fixes this bug by connecting the
DolphinNavigatorsWidgetAction to each tab page before calling
restoreState() in DolphinTabWidget::readProperties().

M  +8    -1    src/dolphintabwidget.cpp

https://invent.kde.org/system/dolphin/-/commit/60cc39930f1b0a78280712c8fe1447e919f018f8

-- 
You are receiving this mail because:
You are on the CC list for the bug.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.