diff --git a/rtgui/preferences.cc b/rtgui/preferences.cc index 84625bdcf..124cd37a5 100644 --- a/rtgui/preferences.cc +++ b/rtgui/preferences.cc @@ -36,13 +36,13 @@ extern Glib::ustring argv0; extern Glib::RefPtr cssForced; Glib::RefPtr css; -Preferences::Preferences (RTWindow *rtwindow) : rprofiles(NULL), iprofiles(NULL), parent(rtwindow) +Preferences::Preferences (RTWindow *rtwindow) + : Gtk::Dialog (M("MAIN_BUTTON_PREFERENCES"), *rtwindow, true) + , rprofiles (nullptr) + , iprofiles (nullptr) + , parent (rtwindow) + , splash (nullptr) { - - splash = NULL; - - set_title (M("MAIN_BUTTON_PREFERENCES")); - moptions.copyFrom (&options); /* @@ -96,7 +96,6 @@ Preferences::Preferences (RTWindow *rtwindow) : rprofiles(NULL), iprofiles(NULL fillPreferences (); show_all_children (); - set_modal (true); }