mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 12:22:44 +00:00 
			
		
		
		
	Calendar: Don't assign next_month button variable to add_event button
This commit is contained in:
		
							parent
							
								
									961b4f2577
								
							
						
					
					
						commit
						dc680d57aa
					
				
					 2 changed files with 5 additions and 4 deletions
				
			
		|  | @ -49,10 +49,10 @@ CalendarWidget::CalendarWidget() | |||
|         update_calendar_tiles(m_target_year, m_target_month); | ||||
|     }; | ||||
| 
 | ||||
|     m_prev_month_button = add<GUI::Button>(); | ||||
|     m_prev_month_button->set_text("Add Event"); | ||||
|     m_prev_month_button->set_relative_rect(475, 13, 100, 25); | ||||
|     m_prev_month_button->on_click = [this] { | ||||
|     m_add_event_button = add<GUI::Button>(); | ||||
|     m_add_event_button->set_text("Add Event"); | ||||
|     m_add_event_button->set_relative_rect(475, 13, 100, 25); | ||||
|     m_add_event_button->on_click = [this] { | ||||
|         AddEventDialog::show(m_calendar, window()); | ||||
|     }; | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 rhin123
						rhin123