Project

General

Profile

Bug #677

MainWindow doesn't restore to maximized state after application is restarted

Added by Squider almost 15 years ago. Updated almost 15 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Quassel GUI (Qt)
Target version:
Start date:
04/16/2009
Due date:
04/16/2009
% Done:

100%

Estimated time:
0.50 h
Version:
0.4.1
OS:
Any

Description

When starting the application, the main window doesn't restore to the correct state.
After the patch, the maximized window size shouldn't affect the window size stored and the maximized state should be recovered properly.

Associated revisions

Revision 65e81b75 (diff)
Added by Manuel Nickschas almost 15 years ago

Properly save and restore the mainwindow state

We now save size, position, maximize, minimize and hidden-to-tray on exit
and restore it at next start. Since Qt's restoreState() has some issues, I had
to workaround things a bit, so please test on your system and report if there are
still problems with the current implementation!

Fixes #677, fixes #452 (since the state is remembered, so just quit Quassel using the
tray context menu while it's hidden).

Revision 525d0aa9 (diff)
Added by Manuel Nickschas almost 15 years ago

Properly save and restore the mainwindow state

We now save size, position, maximize, minimize and hidden-to-tray on exit
and restore it at next start. Since Qt's restoreState() has some issues, I had
to workaround things a bit, so please test on your system and report if there are
still problems with the current implementation!

Fixes #677, fixes #452 (since the state is remembered, so just quit Quassel using the
tray context menu while it's hidden).

History

#1 Updated by Sputnick almost 15 years ago

  • Status changed from New to Resolved

#2 Updated by Sputnick almost 15 years ago

  • Assignee set to Sputnick

Cleaned up the mess that existed in MainWin and did it properly. Also I'm using restoreState() now, which should take care of ensuring that the window appears in the visible screen area.

Please let me know if there are still issues; window manager-related stuff like this (in particular if it involves some hackery) is hard to get right on all platforms :)

Also available in: Atom PDF