summaryrefslogtreecommitdiff
path: root/src/gui/widgets/tabs/setup_video.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-05-21 22:00:30 +0300
committerAndrei Karas <akaras@inbox.ru>2015-05-21 22:00:30 +0300
commit76dc498cd50fb5bc83b3d0a165df17781af35979 (patch)
tree6513853d484fa36e282afc2865e8e98f69100aeb /src/gui/widgets/tabs/setup_video.cpp
parentba307a72cb8bcfe068e362fab4a5e572d9ac65e9 (diff)
downloadmv-76dc498cd50fb5bc83b3d0a165df17781af35979.tar.gz
mv-76dc498cd50fb5bc83b3d0a165df17781af35979.tar.bz2
mv-76dc498cd50fb5bc83b3d0a165df17781af35979.tar.xz
mv-76dc498cd50fb5bc83b3d0a165df17781af35979.zip
Call postInit after each window creation.
Diffstat (limited to 'src/gui/widgets/tabs/setup_video.cpp')
-rw-r--r--src/gui/widgets/tabs/setup_video.cpp16
1 files changed, 8 insertions, 8 deletions
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