Fix all (or almost all) toolbar problems.
Now, in detail: - We need two restoreState method calls when applying the main window settings. One before we set the toolbars again, and another after that. The first call will setup them, the second will do the right math with them (since toolbar text position, icon size... was set).
- Actually compress potential sync's with a proper timer - When dirtying the settings, save directly (of course, for almost all actions, not for moving or resizing, which are compressed).
This prevents us from saving incorrect settings if toolbars have been removed/changed on the meanwhile, and thus, making QMainWindow::saveState() storing incorrect values. |