Summary: | Toolbar buttons for next and previous tabs do not gray out | ||
---|---|---|---|
Product: | [Applications] dolphin | Reporter: | Brock McNuggets <usenet> |
Component: | general | Assignee: | Dolphin Bug Assignee <dolphin-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | cfeck, frank78ac, renatoat |
Priority: | NOR | Keywords: | junior-jobs |
Version: | 4.11.5 | ||
Target Milestone: | --- | ||
Platform: | Mint (Ubuntu based) | ||
OS: | Linux | ||
Latest Commit: | http://commits.kde.org/kde-baseapps/670737cbfd23fb29538af69776595e1286773483 | Version Fixed In: | 4.13.1 |
Sentry Crash Report: |
Description
Brock McNuggets
2014-03-26 14:16:44 UTC
Thanks for the report. I think that this needs to be fixed in KTabBar, not Dolphin. Nope, those actions are created and managed by Dolphin. The tab bar has no idea that those actions are available. For the "close_tab" action, the enabled state is managed inside dolphinmainwindow.cpp, see e.g. line 483 and 1157. (In reply to comment #2) > Nope, those actions are created and managed by Dolphin. The tab bar has no > idea that those actions are available. Thanks Christoph, and sorry about the stupid mistake. I was first not aware of this and thought that the tab bar sets up the actions itself, but this is wrong, of course. (In reply to comment #2) > For the "close_tab" action, the enabled state is managed inside > dolphinmainwindow.cpp, see e.g. line 483 and 1157. With this information, it might be a good job for newcomers to extend this to the "activate_next_tab" and "activate_prev_tab" actions. I've added a review request for the solution proposed, plus a initial disabled state for both buttons: https://git.reviewboard.kde.org/r/117778/ Should I target a specific branch? Which? Git commit 670737cbfd23fb29538af69776595e1286773483 by Emmanuel Pescosta, on behalf of Renato Atilio. Committed on 26/04/2014 at 10:28. Pushed by emmanuelp into branch 'KDE/4.13'. Enable the previous and next tab toolbar buttons when multiple tabs are opened. Disable them again when there is only one remaining tab. Additionally set the default state to disabled. FIXED-IN: 4.13.1 REVIEW: 117778 M +6 -0 dolphin/src/dolphinmainwindow.cpp http://commits.kde.org/kde-baseapps/670737cbfd23fb29538af69776595e1286773483 |