Bug 454986 - Crash when manipulating profiles in a specific way.
Summary: Crash when manipulating profiles in a specific way.
Status: RESOLVED FIXED
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: 21.12.3
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-06-07 16:57 UTC by Rick Chamblee
Modified: 2023-03-13 18:49 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rick Chamblee 2022-06-07 16:57:59 UTC
SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
1. Settings -> Manage Profiles
2. Add a new profile with the default settings, and press Okay.
3. Make this new profile the default profile
4. Now make the original profile the default profile
5. Then click on the new profile you created.
6. Click remove, and then without clicking anything else click set as default again on the right hand side


OBSERVED RESULT
Konsole then crashes

EXPECTED RESULT
Konsole should instead select another profile from the list when you delete a profile if possible, so this can't happen, or it should disable the buttons on the right hand side if no profile is selected.

ADDITIONAL INFORMATION
Comment 1 Kurt Hindenburg 2022-10-02 01:13:09 UTC
Yes something is not correct
Comment 2 Waqar Ahmed 2023-03-13 18:49:17 UTC
Git commit 2d0fad18dc3d6fd8a45c50b8fd889889b473e0e2 by Waqar Ahmed.
Committed on 13/03/2023 at 18:31.
Pushed by hindenburg into branch 'master'.

Fix crash in ProfileSettings

Fixes the following crash

- Open Settings -> Manage Profiles...
- Click on a non default profile and edit it
- In "Edit Profile Dialog", check "Default" to make this profile default
- Click Ok, Now we are back in "Manage Profiles" dialog.
- See that "Set as Default" is still clickable, clicking it crashes konsole
Related: bug 423136, bug 445173

M  +6    -0    src/settings/ProfileSettings.cpp

https://invent.kde.org/utilities/konsole/commit/2d0fad18dc3d6fd8a45c50b8fd889889b473e0e2