Commit 2746a10c authored by Wolthera van Hövell's avatar Wolthera van Hövell 🛍

Revert "Make the selection of the default presets a bit more robust."

Wolthera needs more sleep before she gets to push things to git >_>

This reverts commit 01009d42.
parent f1f85b24
......@@ -490,7 +490,7 @@ KisPaintopBox::KisPaintopBox(KisViewManager *view, QWidget *parent, const char *
bool foundTip = false;
for (int i=0; i<rserver->resourceCount(); i++) {
KisPaintOpPresetSP resource = rserver->resources().at(i);
if (resource->name().toLower().contains(m_eraserName)) {
if (resource->name().toLower().contains("eraser_circle")) {
m_eraserName = resource->name();
foundEraser = true;
} else if (foundEraser == false && (resource->name().toLower().contains("eraser") ||
......@@ -498,7 +498,7 @@ KisPaintopBox::KisPaintopBox(KisViewManager *view, QWidget *parent, const char *
m_eraserName = resource->name();
foundEraser = true;
}
if (resource->name().toLower().contains(m_defaultPresetName)) {
if (resource->name().toLower().contains("basic_tip_default")) {
m_defaultPresetName = resource->name();
foundTip = true;
} else if (foundTip == false && (resource->name().toLower().contains("default") ||
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment