| Summary: | Save canvas size presets saves only after the next Krita session | ||
|---|---|---|---|
| Product: | [Applications] krita | Reporter: | Dmitry Kazakov <dimula73> |
| Component: | Usability | Assignee: | Krita Bugs <krita-bugs-null> |
| Status: | RESOLVED WORKSFORME | ||
| Severity: | normal | CC: | halla |
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | Other | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
Dmitry Kazakov
2015-06-09 13:34:16 UTC
Original post is here: http://vk.com/topic-38024296_28204669?offset=400 Er... A bit of translation? If it's about adding the new predefined size to the combobox:
void KisCustomImageWidget::saveAsPredefined()
has code for that:
int i = 0;
bool found = false;
foreach(KisPropertiesConfiguration *pr, m_predefined) {
if (pr->getString("name") == txtPredefinedName->text()) {
found = true;
break;
}
++i;
}
if (found) {
m_predefined[i] = predefined;
}
else {
m_predefined.append(predefined);
cmbPredefined->addItem(txtPredefinedName->text());
}
And I checked, that works...
I'm not getting the google translate of the original bug, so this is needsinfo...
|