Bug 183285 - kontact does not restore its window size
Summary: kontact does not restore its window size
Status: RESOLVED FIXED
Alias: None
Product: kontact
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-05 11:51 UTC by Dexter Magnific
Modified: 2009-03-10 09:51 UTC (History)
4 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dexter Magnific 2009-02-05 11:51:03 UTC
Version:           unknown (using 4.2.00 (KDE 4.2.0), Gentoo)
Compiler:          i686-pc-linux-gnu-gcc
OS:                Linux (i686) release 2.6.28-gentoo-r1

The new kontact 4.2 does not restore its last window size at startup. This causes for instance kmail part to change its column header sizes to fit the new window size. This is very annoying since at each startup I manually resize kontact window, then adjust kmail column headers is message list.

This was not happening in 4.1. Another feature that I found very useful is that kontact kept each component's window size (kontact window size depends on the select component).

Thanks
Comment 1 Ojec Borec 2009-02-11 21:03:17 UTC
Same for me. File ~/.kde4.2/share/config/kontactrc says that there is

[MainWindow]
Height 1200=1201
Width 1920=1489

before kontact is opened and 

Height 1200=1201
Width 1920=700

after second open.
Comment 2 Sean Harmer 2009-02-21 17:19:41 UTC
I can confirm this with kontact in kde-4.2.0 too.
Comment 3 Sean Harmer 2009-02-22 16:24:57 UTC
Patch submitted to mailing list. Waiting for approval to commit.
Comment 4 Sean Harmer 2009-02-22 20:20:22 UTC
Fixed in svn (4.2 branch and trunk) as of r930166. Please test and close bug (I don't have permissions to do so).
Comment 5 Allen Winter 2009-02-22 22:26:23 UTC
ok, closing as fixed
Comment 6 Christian Schneider 2009-03-09 13:02:19 UTC
The discribed problem still exists in Kontact 1.4.1 from KDE 4.2.1 (Kubuntu packages). Should this already been fixed, or will this come with KDE 4.2.2?
Comment 7 Sean Harmer 2009-03-09 23:06:46 UTC
Hi, the fix should already be in KDE 4.2.1. Can you check to see if the [Mainwindow] section in your kontactrc file gets updated when you resize the kontact window please. Then close the app and restart it and check if it gets resized to the size in the kontactrc file or to some other size. If it is some other size what is it?

It works for me here with KDE 4.2.1 (on Gentoo).
Comment 8 Christian Schneider 2009-03-10 09:51:55 UTC
Here is what I did and what the [MainWindow] section of kontactrc looks like after each step:

1. Open Kontact
2. Resize the window to a comfortable size

[MainWindow]
Height 1200=1107
State=AAAA/wAAAAD9AAAAAAAAB3YAAAP8AAAABAAAAAQAAAAIAAAACPwAAAABAAAAAgAAAAIAAAAWAG0AYQBpAG4AVABvAG8AbABCAGEAcgEAAAAAAAAHdgAAAAAAAAAAAAAAIABuAGEAdgBpAGcAYQB0AG8AcgBUAG8AbwBsAEIAYQByAAAAAAD/////AAAAAAAAAAA=
Width 1920=1921

4. Close Kontact via the X button of the window decoration

[MainWindow]
Height 1200=1107
State=AAAA/wAAAAD9AAAAAAAAB3YAAAP8AAAABAAAAAQAAAAIAAAACPwAAAABAAAAAgAAAAIAAAAWAG0AYQBpAG4AVABvAG8AbABCAGEAcgEAAAAAAAAHdgAAAAAAAAAAAAAAIABuAGEAdgBpAGcAYQB0AG8AcgBUAG8AbwBsAEIAYQByAAAAAAD/////AAAAAAAAAAA=
Width 1920=1910

6. Open Kontact via the mail icon in the system tray, the window is quite small again, approx. 4:3 size.

[MainWindow]
Height 1200=600
State=AAAA/wAAAAD9AAAAAAAAAz4AAAIBAAAABAAAAAQAAAAIAAAACPwAAAABAAAAAgAAAAIAAAAWAG0AYQBpAG4AVABvAG8AbABCAGEAcgEAAAAAAAADPgAAAAAAAAAAAAAAIABuAGEAdgBpAGcAYQB0AG8AcgBUAG8AbwBsAEIAYQByAAAAAAD/////AAAAAAAAAAA=
Width 1920=830

8. Resize the window:

[MainWindow]
Height 1200=1107
State=AAAA/wAAAAD9AAAAAAAAB3YAAAP8AAAABAAAAAQAAAAIAAAACPwAAAABAAAAAgAAAAIAAAAWAG0AYQBpAG4AVABvAG8AbABCAGEAcgEAAAAAAAAHdgAAAAAAAAAAAAAAIABuAGEAdgBpAGcAYQB0AG8AcgBUAG8AbwBsAEIAYQByAAAAAAD/////AAAAAAAAAAA=
Width 1920=1921

9. Close Kontact via File->Quit

[MainWindow]
Height 1200=1107
State=AAAA/wAAAAD9AAAAAAAAB3YAAAP8AAAABAAAAAQAAAAIAAAACPwAAAABAAAAAgAAAAIAAAAWAG0AYQBpAG4AVABvAG8AbABCAGEAcgEAAAAAAAAHdgAAAAAAAAAAAAAAIABuAGEAdgBpAGcAYQB0AG8AcgBUAG8AbwBsAEIAYQByAAAAAAD/////AAAAAAAAAAA=
Width 1920=1921

10. Open Kontact via KDE menu, the window has its previous width but the height is very low:

[MainWindow]
Height 1200=600
State=AAAA/wAAAAD9AAAAAAAAB3YAAAIBAAAABAAAAAQAAAAIAAAACPwAAAABAAAAAgAAAAIAAAAWAG0AYQBpAG4AVABvAG8AbABCAGEAcgEAAAAAAAAHdgAAAAAAAAAAAAAAIABuAGEAdgBpAGcAYQB0AG8AcgBUAG8AbwBsAEIAYQByAAAAAAD/////AAAAAAAAAAA=
Width 1920=1921