From 093d95683bfcbbff6e0ddd87414e2cd723f17dc9 Mon Sep 17 00:00:00 2001 From: Björn Steinbrink Date: Mon, 30 Jan 2006 02:04:39 +0000 Subject: A few cleanups and simplifications. --- src/gui/setup.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/gui/setup.cpp') diff --git a/src/gui/setup.cpp b/src/gui/setup.cpp index 34f5b360..cbb9d599 100644 --- a/src/gui/setup.cpp +++ b/src/gui/setup.cpp @@ -314,8 +314,8 @@ void Setup::action(const std::string &eventId) } } } else { - new OkDialog(this, "Switching to FullScreen", - "Restart needed for changes to take effect."); + new OkDialog("Switching to FullScreen", + "Restart needed for changes to take effect.", NULL, this); } config.setValue("screen", fullscreen ? 1 : 0); } @@ -329,7 +329,7 @@ void Setup::action(const std::string &eventId) } catch (const char *err) { - new OkDialog(this, "Sound Engine", err); + new OkDialog("Sound Engine", err, NULL, this); logger->log("Warning: %s", err); } } @@ -345,8 +345,8 @@ void Setup::action(const std::string &eventId) config.setValue("opengl", openGLCheckBox->isMarked() ? 1 : 0); // OpenGL can currently only be changed by restarting, notify user. - new OkDialog(this, "Changing OpenGL", - "Applying change to OpenGL requires restart."); + new OkDialog("Changing OpenGL", + "Applying change to OpenGL requires restart.", NULL, this); } // We sync old and new values at apply time -- cgit v1.2.3-70-g09d2