Bug 510389 - Duplicating a Tab via shortcut, duplicates it twice
Summary: Duplicating a Tab via shortcut, duplicates it twice
Status: REPORTED
Alias: None
Product: krusader
Classification: Applications
Component: shortcuts (other bugs)
Version First Reported In: unspecified
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Krusader Bugs Distribution List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-10-08 12:47 UTC by pjoetri
Modified: 2025-10-08 12:47 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description pjoetri 2025-10-08 12:47:46 UTC
Initially reported in Krusader issue tracker: https://invent.kde.org/utilities/krusader/-/issues?sort=updated_desc&state=opened&first_page_size=100&show=eyJpaWQiOiIzMyIsImZ1bGxfcGF0aCI6InV0aWxpdGllcy9rcnVzYWRlciIsImlkIjo1MDA4N30%3D


When duplicating a tab via a keyboard shortcut(Ctrl+Shift+N or Ctrl+T), the tab gets duplicated twice.

This does not always happen but >= 50% of the time.
This does NOT happen if you duplicate a tab through the mouse menu: Window->Duplicate Current Tab

Tried to bisect the bug but it exists in all revisions I tested (went half a year back)
Maybe it is a Qt bug?

Tried to debug it with breakpoints, but the bug didn't happen then.
Only when disabling the breakpoints it appeared again.

System:
```
Arch Linux 6.16.10-arch1-1
Wayland
KDE Plasma Desktop 6.4.5
KDE Frameworks 6.18.0
Qt 6.9.2
Krusader 2.9.0 and Krusader 2.10.0-dev gitrev: 5c0d5c4d3
```

debug output when running Krusader in debug mode `krusader --debug`:
```
12:57:52.218-debug default KrSearchBar::eventFilter@209 # key press event= QKeyEvent(KeyPress, Key_Control, ControlModifier)
12:57:52.218-debug default KrView::handleKeyEvent@628 # key event= QKeyEvent(KeyPress, Key_Control, ControlModifier)
12:57:52.218-debug default KrView::handleKeyEvent@628 # key event= QKeyEvent(KeyPress, Key_Control, ControlModifier)
12:57:52.669-debug default ListPanelFunc::openUrl@190 # URL= "file:///home/username" ; nameToMakeCurrent= ""
12:57:52.692-debug default FileSystem::scanOrRefresh@93 # from current dir= "" ; to= "file:///home/username"
12:57:52.692-debug default DefaultFileSystem::refreshInternal@193 # refresh internal to URL= "file:///home/username"
12:57:52.692-debug default DefaultFileSystem::refreshInternal@202 # start local refresh to URL= "file:///home/username"
12:57:53.102-debug default ListPanelFunc::openUrl@190 # URL= "file:///home/username" ; nameToMakeCurrent= ""
12:57:53.123-debug default FileSystem::scanOrRefresh@93 # from current dir= "" ; to= "file:///home/username"
12:57:53.123-debug default DefaultFileSystem::refreshInternal@193 # refresh internal to URL= "file:///home/username"
12:57:53.123-debug default DefaultFileSystem::refreshInternal@202 # start local refresh to URL= "file:///home/username"
```