mirror of
https://github.com/Qz3rK/tdesktop.git
synced 2026-07-03 14:15:08 +02:00
Fixed ability to open more than one calendar in schedule box.
This commit is contained in:
@@ -672,8 +672,12 @@ void ScheduleBox(
|
||||
width);
|
||||
}, content->lifetime());
|
||||
|
||||
const auto calendar =
|
||||
content->lifetime().make_state<QPointer<CalendarBox>>();
|
||||
QObject::connect(dayInput, &Ui::InputField::focused, [=] {
|
||||
const auto calendar = std::make_shared<QPointer<CalendarBox>>();
|
||||
if (*calendar) {
|
||||
return;
|
||||
}
|
||||
const auto chosen = [=](QDate chosen) {
|
||||
*date = chosen;
|
||||
(*calendar)->closeBox();
|
||||
|
||||
Reference in New Issue
Block a user