<table><tr><td style="">ahmadsamir updated this revision to Diff 23834.<br />ahmadsamir edited the summary of this revision. <a href="https://phabricator.kde.org/transactions/detail/PHID-XACT-DREV-4nglna36xxniows/" rel="noreferrer">(Show Details)</a><br />ahmadsamir added a comment.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D9272" rel="noreferrer">View Revision</a></tr></table><br /><div><div><p>Add one more check, if the profile config file is not writable (e.g. it's under /usr/share/konsole) don't allow saving, and display a message asking the user to change the profile name if he/she wants to save the settings</p></div></div><br /><div><strong>CHANGES TO REVISION SUMMARY</strong><div><div style="white-space: pre-wrap; color: #74777D;">Change the edit profile dialog so that the profile can't be saved if<span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">:<br />
 - The profile config file is in a read-only dir (e.g. /usr/share/konsole)</span><br />
<span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);"> - The </span>name is empty or if the name matches the name of another already<br />
existing profile<span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">. Now you can't Apply or OK the changes if either of those conditions is true</span>.<div style="padding: 8px 0;">...</div> - The profile can only be renamed from the edit profile dialog so that <span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">the check to see that it's not empty or going to overwrite another p</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">we can check if the profile can be saved (from EditP</span>rofile<span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);"> is used</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">Dialog)</span><br />
 - Double clicking the profile name opens the edit profile dialog</div></div></div><br /><div><strong>REPOSITORY</strong><div><div>R319 Konsole</div></div></div><br /><div><strong>CHANGES SINCE LAST UPDATE</strong><div><a href="https://phabricator.kde.org/D9272?vs=23801&id=23834" rel="noreferrer">https://phabricator.kde.org/D9272?vs=23801&id=23834</a></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D9272" rel="noreferrer">https://phabricator.kde.org/D9272</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/EditProfileDialog.cpp<br />
src/EditProfileDialog.h<br />
src/ProfileManager.cpp<br />
src/settings/ProfileSettings.cpp<br />
src/settings/ProfileSettings.h</div></div></div><br /><div><strong>To: </strong>ahmadsamir, hindenburg<br /><strong>Cc: </strong>ngraham, Konsole, hindenburg<br /></div>