summaryrefslogtreecommitdiff
path: root/Applications/DisplayProperties/DisplayProperties.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Applications/DisplayProperties/DisplayProperties.cpp')
-rw-r--r--Applications/DisplayProperties/DisplayProperties.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Applications/DisplayProperties/DisplayProperties.cpp b/Applications/DisplayProperties/DisplayProperties.cpp
index 74a1dacb7f..090a2dbd1e 100644
--- a/Applications/DisplayProperties/DisplayProperties.cpp
+++ b/Applications/DisplayProperties/DisplayProperties.cpp
@@ -113,7 +113,7 @@ void DisplayPropertiesWidget::create_frame()
apply_button->set_size_policy(Orientation::Horizontal, SizePolicy::Fixed);
apply_button->set_preferred_size(60, 22);
apply_button->on_click = [this, tab_widget](GButton&) {
- send_settings_to_window_server(tab_widget->get_active_tab());
+ send_settings_to_window_server(tab_widget->active_tab_index());
};
auto* ok_button = new GButton(bottom_widget);
@@ -122,7 +122,7 @@ void DisplayPropertiesWidget::create_frame()
ok_button->set_size_policy(Orientation::Horizontal, SizePolicy::Fixed);
ok_button->set_preferred_size(60, 22);
ok_button->on_click = [this, tab_widget](GButton&) {
- send_settings_to_window_server(tab_widget->get_active_tab());
+ send_settings_to_window_server(tab_widget->active_tab_index());
GApplication::the().quit();
};