--------------------------------- EditorApp::OnActionPreferences On clicking the preferences button in the menu we show the SettingsDialog
| 259 | // On clicking the preferences button in the menu we show the SettingsDialog |
| 260 | // |
| 261 | void EditorApp::OnActionPreferences() |
| 262 | { |
| 263 | try |
| 264 | { |
| 265 | SettingsDialog* prefsDialog = SettingsDialog::create(*get_active_window()); |
| 266 | prefsDialog->present(); |
| 267 | |
| 268 | // Delete the dialog when it is hidden. |
| 269 | prefsDialog->signal_hide().connect(sigc::bind<Gtk::Window*>(sigc::mem_fun(*this, &EditorApp::OnHideWindow), prefsDialog)); |
| 270 | } |
| 271 | catch (const Glib::Error& ex) |
| 272 | { |
| 273 | LOG("EditorApp::OnActionPreferences > " + std::string(ex.what()), core::LogLevel::Error); |
| 274 | } |
| 275 | catch (const std::exception& ex) |
| 276 | { |
| 277 | LOG("EditorApp::OnActionPreferences > " + std::string(ex.what()), core::LogLevel::Error); |
| 278 | } |
| 279 | } |
| 280 | |
| 281 | //--------------------------------- |
| 282 | // EditorApp::OnActionPreferences |
nothing calls this directly
no outgoing calls
no test coverage detected