qt5base-lts/src
Qiang Li 5d4b91ea66 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
Pick-to: 6.2
Change-Id: I945e2093a90a1fccbba86d32b1113f83fedd41de
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
2021-10-09 05:41:00 +02:00
..
3rdparty Update Harfbuzz to version 3.0.0 2021-10-05 21:53:10 +02:00
android Android: Update and add missing gradle files for jar folders 2021-10-06 16:05:19 +03:00
concurrent Remove checks for features available in C++17 2021-10-02 17:54:39 +02:00
corelib QString: Use QStringIterator in QtPrivate::isRightToLeft() 2021-10-09 02:54:45 +02:00
dbus Doc: Make it explicit when CMake API is defined 2021-10-05 15:48:22 +02:00
entrypoint Adjust the EntryPoint target name according to the internal module naming policy 2021-06-15 12:51:49 +02:00
gui gl: Try the local CacheLocation when the shared one fails 2021-10-08 11:07:15 +02:00
network QNetworkInfo: Add transport medium detection API 2021-10-07 19:08:23 +02:00
opengl Add some debug warnings to the GL paint engine regarding stencil 2021-09-23 16:27:59 +02:00
openglwidgets Migrate to autogenerated cpp exports 2021-06-25 19:33:12 +02:00
platformsupport High resolution wheel-event support from libinput 2021-09-18 15:39:07 +00:00
plugins QNI: Windows: Remove unneeded friend 2021-10-08 14:46:14 +02:00
printsupport Doc: Remove unsupported customFilters 2021-09-03 15:14:59 +00:00
sql Doc: Prettify -G cmake arguments in SQL drivers documentation 2021-10-08 14:16:51 +02:00
testlib QTest: support initMain() in QTEST_APPLESS_MAIN 2021-10-05 21:53:10 +02:00
tools androiddeployqt: Use QElapsedTimer to get elapsed time 2021-10-08 20:03:22 +02:00
widgets Fix QTabBar's SelectPreviousTab behavior 2021-10-09 05:41:00 +02:00
xml Doc: Remove unsupported customFilters 2021-09-03 15:14:59 +00:00
CMakeLists.txt Make it possible to disable the PrintSupport module 2021-02-09 09:17:21 +01:00