Fix crash when using resetColorScheme()

Authored by ahmadsamir on Mar 31 2018, 1:01 AM.

Description

Fix crash when using resetColorScheme()

Summary:
After the KNewStuff changes that were added to
EditProfileDialog::removeColorScheme(), now when
resetColorScheme() calls removeColorScheme() Konsole crashes.
Change resetColorScheme() to call ColorSchemeManager::deleteColorScheme()
directly; this is more logical since there's no need to delete the row
from the color schemes list as reseting the color scheme just deletes
the relevant color scheme from the user's home dir and "re-adds" the
original one from the system-wide location.

Reviewers: Konsole, hindenburg

Reviewed By: Konsole, hindenburg

Subscribers: Konsole

Tags: Konsole

Differential Revision: https://phabricator.kde.org/D11821

(cherry picked from commit 914d12a04959e1e2f8892532a36ce49bb4b7838b)

Details

Committed
hindenburgMar 31 2018, 1:51 AM
Reviewer
Konsole
Differential Revision
D11821: Fix crash when using resetColorScheme()
Parents
R319:f03246230c65: GIT_SILENT made messages (after extraction)
Branches
Unknown
Tags
Unknown