Bug 348927 - Save canvas size presets saves only after the next Krita session
Summary: Save canvas size presets saves only after the next Krita session
Status: RESOLVED WORKSFORME
Alias: None
Product: krita
Classification: Applications
Component: Usability (other bugs)
Version First Reported In: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-06-09 13:34 UTC by Dmitry Kazakov
Modified: 2016-06-16 09:43 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitry Kazakov 2015-06-09 13:34:16 UTC
Взял такой, нажал на кнопку сохранения размера холста в диалоге создания документа, а потом тут же его выбрал, а в цифровых полях совершенно не те размеры, что я создавал, но совсем другие большие.

Вписал нужные мне размеры и создал документ.

Потом вернулся в диалог создания нового документа, нашёл сейв тех самых верных размеров и... о, чудо! Они вносятся верно в цифровые поля!

Смысл не понял...
Comment 1 Dmitry Kazakov 2015-06-09 13:34:47 UTC
Original post is here: http://vk.com/topic-38024296_28204669?offset=400
Comment 2 Halla Rempt 2015-06-09 16:49:48 UTC
Er... A bit of translation?
Comment 3 Halla Rempt 2015-06-20 14:23:39 UTC
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...