<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>454986</bug_id>
          
          <creation_ts>2022-06-07 16:57:59 +0000</creation_ts>
          <short_desc>Crash when manipulating profiles in a specific way.</short_desc>
          <delta_ts>2023-03-13 18:49:17 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>konsole</product>
          <component>general</component>
          <version>21.12.3</version>
          <rep_platform>Ubuntu</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>crash</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Rick Chamblee">rickeyachamblee</reporter>
          <assigned_to name="Konsole Bugs">konsole-bugs-null</assigned_to>
          
          
          <cf_commitlink>https://invent.kde.org/utilities/konsole/commit/2d0fad18dc3d6fd8a45c50b8fd889889b473e0e2</cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2129714</commentid>
    <comment_count>0</comment_count>
    <who name="Rick Chamblee">rickeyachamblee</who>
    <bug_when>2022-06-07 16:57:59 +0000</bug_when>
    <thetext>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 -&gt; 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&apos;t happen, or it should disable the buttons on the right hand side if no profile is selected.

ADDITIONAL INFORMATION</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2157808</commentid>
    <comment_count>1</comment_count>
    <who name="Kurt Hindenburg">khindenburg</who>
    <bug_when>2022-10-02 01:13:09 +0000</bug_when>
    <thetext>Yes something is not correct</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2215949</commentid>
    <comment_count>2</comment_count>
    <who name="Waqar Ahmed">waqar.17a</who>
    <bug_when>2023-03-13 18:49:17 +0000</bug_when>
    <thetext>Git commit 2d0fad18dc3d6fd8a45c50b8fd889889b473e0e2 by Waqar Ahmed.
Committed on 13/03/2023 at 18:31.
Pushed by hindenburg into branch &apos;master&apos;.

Fix crash in ProfileSettings

Fixes the following crash

- Open Settings -&gt; Manage Profiles...
- Click on a non default profile and edit it
- In &quot;Edit Profile Dialog&quot;, check &quot;Default&quot; to make this profile default
- Click Ok, Now we are back in &quot;Manage Profiles&quot; dialog.
- See that &quot;Set as Default&quot; 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</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>