From 76dc498cd50fb5bc83b3d0a165df17781af35979 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 21 May 2015 22:00:30 +0300 Subject: Call postInit after each window creation. --- src/gui/widgets/tabs/setup_video.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/gui/widgets/tabs/setup_video.cpp') diff --git a/src/gui/widgets/tabs/setup_video.cpp b/src/gui/widgets/tabs/setup_video.cpp index c2ee237e5..9acd36f86 100644 --- a/src/gui/widgets/tabs/setup_video.cpp +++ b/src/gui/widgets/tabs/setup_video.cpp @@ -243,7 +243,7 @@ void Setup_Video::apply() else { // TRANSLATORS: video settings warning - new OkDialog(_("Switching to Full Screen"), + (new OkDialog(_("Switching to Full Screen"), // TRANSLATORS: video settings warning _("Restart needed for changes to take effect."), // TRANSLATORS: ok dialog button @@ -252,7 +252,7 @@ void Setup_Video::apply() Modal_true, ShowCenter_true, nullptr, - 260); + 260))->postInit(); } #endif config.setValue("screen", fullscreen); @@ -270,7 +270,7 @@ void Setup_Video::apply() // OpenGL can currently only be changed by restarting, notify user. // TRANSLATORS: video settings warning - new OkDialog(_("Changing to OpenGL"), + (new OkDialog(_("Changing to OpenGL"), // TRANSLATORS: video settings warning _("Applying change to OpenGL requires restart."), // TRANSLATORS: ok dialog button @@ -279,7 +279,7 @@ void Setup_Video::apply() Modal_true, ShowCenter_true, nullptr, - 260); + 260))->postInit(); } mFps = mFpsCheckBox->isSelected() ? @@ -386,7 +386,7 @@ void Setup_Video::action(const ActionEvent &event) || height < mainGraphics->mActualHeight) { // TRANSLATORS: video settings warning - new OkDialog(_("Screen Resolution Changed"), + (new OkDialog(_("Screen Resolution Changed"), // TRANSLATORS: video settings warning _("Restart your client for the change to take effect.") + std::string("\n") + _("Some windows may be moved to " @@ -397,12 +397,12 @@ void Setup_Video::action(const ActionEvent &event) Modal_true, ShowCenter_true, nullptr, - 260); + 260))->postInit(); } else { // TRANSLATORS: video settings warning - new OkDialog(_("Screen Resolution Changed"), + (new OkDialog(_("Screen Resolution Changed"), // TRANSLATORS: video settings warning _("Restart your client for the change" " to take effect."), @@ -412,7 +412,7 @@ void Setup_Video::action(const ActionEvent &event) Modal_true, ShowCenter_true, nullptr, - 260); + 260))->postInit(); } } #else -- cgit v1.2.3-60-g2f50