diff options
author | Tobias Markmann <tm@ayena.de> | 2016-08-10 11:43:01 (GMT) |
---|---|---|
committer | Kevin Smith <kevin.smith@isode.com> | 2016-08-19 09:40:19 (GMT) |
commit | 15d1f20836d4246f3d5a4eafbeb5095d4c4ba7bc (patch) | |
tree | 7327b601a958ec3db4164e385ad22326ea5f876d /Swiften/Crypto/CryptoProvider.cpp | |
parent | 1a12b42c291784bc097487c4f4533df9efaded11 (diff) | |
download | swift-15d1f20836d4246f3d5a4eafbeb5095d4c4ba7bc.zip swift-15d1f20836d4246f3d5a4eafbeb5095d4c4ba7bc.tar.bz2 |
Fix crash during trellis size change on Windows
Due to Windows focus handling, the handleApplicationFocusChanged
method was called during the relayout process while the dynamic
grid layout is not in a consistent state.
With this change a call to handleApplicationFocusChanged will
just be ignored during the relayout process when changing the
layout.
Now it also remembers the current active widget in the layout
and activates it after the relayouting is done.
Test-Information:
The crash happened in a scenario where you had a few rows and
columns and with many tabs randomly distributed, leaving some
trellis cells without a widget. When changing back to a 1x1
grid in this situation it sometimes crashed.
Now it does not anymore.
Tested on Windows 8 with Qt 5.4.2.
Change-Id: I829bac2ba050cf320e15ab48b49bbb9606a82831
Diffstat (limited to 'Swiften/Crypto/CryptoProvider.cpp')
0 files changed, 0 insertions, 0 deletions