Skip to content

armgit / krita

Public Imported from GitHub
0

Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.

C++

Color Sampler Tool: Don't save palette on each added entry

Mathias Wein538e4031d2c3
diff --git a/plugins/tools/basictools/kis_tool_colorsampler.cc b/plugins/tools/basictools/kis_tool_colorsampler.cc
index 15718c6c2d..ab6271f9d4 100644
--- a/plugins/tools/basictools/kis_tool_colorsampler.cc
+++ b/plugins/tools/basictools/kis_tool_colorsampler.cc
@@ -92,11 +92,6 @@ void KisToolColorSampler::slotColorPickerSelectionFinished(const KoColor &color)
if (info.swatch.color() != color) {
palette->addSwatch(swatch);
- if (!KoResourceServerProvider::instance()->paletteServer()->updateResource(palette)) {
- KisCanvas2 *canvas = dynamic_cast<KisCanvas2*>(this->canvas());
- KIS_ASSERT(canvas);
- canvas->viewManager()->showFloatingMessage(i18n("Cannot write to palette file %1. Maybe it is read-only.", palette->filename()), koIcon("object-locked"));
- }
}
}
}