Commit ef074e23 authored by Tomaz  Canabrava's avatar Tomaz Canabrava
Browse files

Be pedantic with the test for QVariant validity

parent de8444c3
......@@ -165,7 +165,7 @@ void DetachableTabBar::paintEvent(QPaintEvent *event)
for (int tabIndex = 0; tabIndex < count(); tabIndex++) {
const QVariant data = tabData(tabIndex);
if (!data.isValid()) {
if (!data.isValid() || data.isNull()) {
continue;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment