-rw-r--r-- | noncore/games/chess/chess.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/noncore/games/chess/chess.cpp b/noncore/games/chess/chess.cpp index 96a838a..29c96bb 100644 --- a/noncore/games/chess/chess.cpp +++ b/noncore/games/chess/chess.cpp @@ -23,2 +23,4 @@ +#include <stdlib.h> + #include <qcanvas.h> @@ -340,5 +342,5 @@ BoardView::BoardView(QCanvas *c, QWidget *w, const char *name) setCanvas(new QCanvas()); - Config c("Chess", Config::User); - c.setGroup("Theme"); - QString theme = c.readEntry("imagefile", "simple-28"); + Config conf("Chess", Config::User); + conf.setGroup("Theme"); + QString theme = conf.readEntry("imagefile", "simple-28"); setTheme(theme); |