Skip to content

Commit 4939640

Browse files
committed
Avoid stray mouse-click after choosing date with calendar
Delay closing of calendar window to avoid stray clicks in list of transactions. Fixes #132
1 parent 6706ab4 commit 4939640

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/CalendarMenuWindow.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,10 @@ CalendarMenuWindow::MessageReceived(BMessage* message)
177177
fInvocationMessage->AddInt32("year", year);
178178
msgr.SendMessage(fInvocationMessage);
179179

180+
// Delay closing the window to avoid a MouseUp reaching the window
181+
// underneath. Remove once https://dev.haiku-os.org/ticket/19861 is fixed.
182+
snooze(100000 * 2);
183+
180184
PostMessage(B_QUIT_REQUESTED);
181185
break;
182186
}

0 commit comments

Comments
 (0)