[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdegames/kpat
From: Inge Wallin <inge () lysator ! liu ! se>
Date: 2004-10-31 10:17:18
Message-ID: 20041031101718.AC7D816B83 () office ! kde ! org
[Download RAW message or body]
CVS commit by ingwa:
Fix bug 92002: Restart game button should have a confirmation dialog
BUG: 92002
M +4 -0 CHANGES 1.12
M +12 -1 pwidget.cpp 1.118
--- kdegames/kpat/CHANGES #1.11:1.12
@@ -1,2 +1,6 @@
+2004-10-31 Inge Wallin <inge@lysator.liu.se>
+
+ - fix wish 92002: Restart game button should have a confirmation dialog
+
2004-10-15 Inge Wallin <inge@lysator.liu.se>
--- kdegames/kpat/pwidget.cpp #1.117:1.118
@@ -42,5 +42,4 @@
#include <kstatusbar.h>
#include "speeds.h"
-#include <kmessagebox.h>
#include <kaccelmanager.h>
#include <kmenubar.h>
@@ -278,4 +277,16 @@ void pWidget::enableAutoDrop()
void pWidget::newGame() {
+ if (KMessageBox
+ ::warningYesNo(0,
+ i18n("You are already running an unfinished game. "
+ "If you abort the old game to start a new one, "
+ "the old game will be registered as a loss in "
+ "the statistics file.\n"
+ "What do you want to do?"),
+ i18n("Abort current game?"),
+ i18n("Abort the old game"),
+ i18n("Continue the old game")) == KMessageBox::No)
+ return;
+
dill->setGameNumber(kapp->random());
setGameCaption();
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic