tablet: use the right scope for the variable

This commit is contained in:
Aleix Pol 2021-07-02 20:54:57 +02:00
parent df9978d6a1
commit c8a37ef27f

View file

@ -1701,8 +1701,8 @@ public:
defaultCursor.loadThemeCursor(CursorShape(Qt::CrossCursor), &ret);
return ret;
};
static const auto defaultCursor = createDefaultCursor();
if (!tcursor || tcursor->enteredSerial() == 0) {
static const auto defaultCursor = createDefaultCursor();
cursor->updateCursor(defaultCursor.image, defaultCursor.hotspot);
return;
}