Fix unsolicited mouse captures after a double-click in an file selection dialog

This commit is contained in:
Alexander Babikov
2022-02-05 01:01:06 +05:00
parent 129ffab728
commit 45520768ba
2 changed files with 6 additions and 1 deletions

View File

@@ -64,6 +64,7 @@ private:
int x, y, w, h, sx, sy, sw, sh;
int currentBuf = 0;
int isMouseDown = 0;
std::vector<std::tuple<uint8_t*, std::atomic_flag*>> imagebufs;
std::unique_ptr<QWidget> current;