https://bugs.kde.org/show_bug.cgi?id=494237

--- Comment #1 from Tobias Schmid <t...@swissqprint.com> ---
In my case, I always hit the else case in the following code.

mainwindow.cpp, line 310:

    if (cg.hasKey("State")) {
        QByteArray state;
        state = cg.readEntry("State", state);
        state = QByteArray::fromBase64(state);
        // One day will need to load the version number, but for now, assume 0
        restoreState(state);
    } else {
        // If there's no state we use a default size of 870x650
        // Resize only when showing "code" area. If we do that for other areas,
        // then we'll hit bug https://bugs.kde.org/show_bug.cgi?id=207990
        // TODO: adymo: this is more like a hack, we need a proper first-start
initialization
        if (area() && area()->objectName() == QLatin1String("code"))
            resize(870,650);
    }

For me it is not clear why this happens. If I remove the else case, it works
for me.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to