diff options
author | Qiang Li <liqianga@uniontech.com> | 2021-06-18 09:47:39 +0800 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2021-10-17 14:32:15 +0000 |
commit | 0d56fd5687b3b6bb747adb919c7d658c6ca1dd27 (patch) | |
tree | 12e490304bcbcb3f873cc0af7b64345946a882fa /conanfile.py | |
parent | 0535f79f03eb40590cd4b6a19cdb988a81ed56c1 (diff) |
Fix QTabBar's SelectPreviousTab behavior
When setCurrentIndex is called by removeTab, the old current index
might no longer be valid. Only update the lastTab value of the new
current tab if the old current index is still valid.
As a drive-by, use the validIndex helper function.
Fixes: QTBUG-94352
Change-Id: I945e2093a90a1fccbba86d32b1113f83fedd41de
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
(cherry picked from commit 5d4b91ea66666f3c8d3c8640b87a33c13dbd0c2c)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'conanfile.py')
0 files changed, 0 insertions, 0 deletions