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

Details

Committed
hindenburgMar 31 2018, 1:32 AM
Reviewer
Konsole
Differential Revision
D11821: Fix crash when using resetColorScheme()
Parents
R319:0ca1391cf50d: Properly handle mouse in read-only mode
Branches
Unknown
Tags
Unknown