summaryrefslogtreecommitdiff
path: root/src/gui/setup.cpp
diff options
context:
space:
mode:
authorBjörn Steinbrink <B.Steinbrink@gmx.de>2006-02-01 12:24:10 +0000
committerBjörn Steinbrink <B.Steinbrink@gmx.de>2006-02-01 12:24:10 +0000
commit4490b8643f2449da159c9284503eb2c443aa2e9e (patch)
treed859ebeb3ee69b89c471793b76f9df7fe9546137 /src/gui/setup.cpp
parent6bff53b318937999a70d775bb6ecea2b18576e0f (diff)
downloadmana-client-4490b8643f2449da159c9284503eb2c443aa2e9e.tar.gz
mana-client-4490b8643f2449da159c9284503eb2c443aa2e9e.tar.bz2
mana-client-4490b8643f2449da159c9284503eb2c443aa2e9e.tar.xz
mana-client-4490b8643f2449da159c9284503eb2c443aa2e9e.zip
Made the OkDialog and ConfirmDialog classes proxies for their buttons' events. Removed the RequestTradeWindow class, replaced with a plain ConfirmDialog. Fixed a memory leak along the way.
Diffstat (limited to 'src/gui/setup.cpp')
-rw-r--r--src/gui/setup.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/setup.cpp b/src/gui/setup.cpp
index 15ef9092..c47d12da 100644
--- a/src/gui/setup.cpp
+++ b/src/gui/setup.cpp
@@ -316,7 +316,7 @@ void Setup::action(const std::string &eventId)
}
} else {
new OkDialog("Switching to FullScreen",
- "Restart needed for changes to take effect.", NULL, this);
+ "Restart needed for changes to take effect.", this);
}
config.setValue("screen", fullscreen ? 1 : 0);
}
@@ -330,7 +330,7 @@ void Setup::action(const std::string &eventId)
}
catch (const char *err)
{
- new OkDialog("Sound Engine", err, NULL, this);
+ new OkDialog("Sound Engine", err, this);
logger->log("Warning: %s", err);
}
}
@@ -347,7 +347,7 @@ void Setup::action(const std::string &eventId)
// OpenGL can currently only be changed by restarting, notify user.
new OkDialog("Changing OpenGL",
- "Applying change to OpenGL requires restart.", NULL, this);
+ "Applying change to OpenGL requires restart.", this);
}
// We sync old and new values at apply time