diff options
author | Tobias Markmann <tm@ayena.de> | 2015-02-18 16:10:38 (GMT) |
---|---|---|
committer | Tobias Markmann <tm@ayena.de> | 2015-02-18 16:10:38 (GMT) |
commit | 2a208653fff7647bd3c03f7797d2ef43d5961784 (patch) | |
tree | cfdffff339f70278fc95ca526d8ec84d192b0fd7 /Swiften/Parser/PayloadParsers/ErrorParser.cpp | |
parent | cd176a0bd994f787ba0b6ac99a3835b72a137f0d (diff) | |
download | swift-2a208653fff7647bd3c03f7797d2ef43d5961784.zip swift-2a208653fff7647bd3c03f7797d2ef43d5961784.tar.bz2 |
Fix crash when a tab drag is aborted in trellis mode
To prevent an infinite recurison during when a tab is returned (added
again) to the original QTabWidget.
The recursion was caused by a show event that is emmitted during insert
and our QtChatTabs::handleWidgetShown function trying to add the tab
again because it is not in the QTabWidget yet; it would be if the show
event would be emitted after the insert is done and not somewhere
during the insert.
Test-Information:
Dragging a tab in trellis mode and *not* dropping it on a tab bar.
Previously this would cause an infinite recursion. Now it just returns
the tab to its previous place.
Tested on OS X 10.9.5 with Qt 5.4.0.
Change-Id: Icd54b95b6f0542b6a9d3921fa1b0ab4df409950a
Diffstat (limited to 'Swiften/Parser/PayloadParsers/ErrorParser.cpp')
0 files changed, 0 insertions, 0 deletions