[Konsole-devel] [Bug 172042] Konsole window resizes on new tab to last resized window

Rafael Fernández López ereslibre at kde.org
Tue Oct 14 14:12:02 UTC 2008


http://bugs.kde.org/show_bug.cgi?id=172042





--- Comment #13 from Rafael Fernández López <ereslibre kde org>  2008-10-14 16:12:00 ---
Thanks for the patch Stefan. I cannot try it at the moment, I will be able in 6
hours more or less... However we usually use camelCase var names (isRestored
instead of is_restored), and also I think you are missing the initialization of
the var. I have no way of doing a diff here... but a rough idea I had to fix
this was to do this check here:

void KMainWindow::applyMainWindowSettings(const KConfigGroup &cg, bool force)
{
    K_D(KMainWindow);
    kDebug(200) << "KMainWindow::applyMainWindowSettings " << cg.name();

    QWidget *focusedWidget = QApplication::focusWidget();

    d->letDirtySettings = false;

    if (!d->isRestored) {
        restoreWindowSize(cg);
        d->isRestored = true;
    }
...

on kmainwindow.cpp file.


-- 
Configure bugmail: http://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the konsole-devel mailing list