summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorsenator <senator>2011-03-28 12:33:24 +0000
committersenator <senator>2011-03-28 12:33:24 +0000
commit6e295edf538c29aac938aed825f1596669648ab8 (patch)
treeb1bba7dc5036aed4fde40f51dd810f9743ea6175 /client
parentee1acb551b20a62be9bbb4de84d5a9f57f83908a (diff)
changed questio to critical in close messagebox
Diffstat (limited to 'client')
-rw-r--r--client/mainwindow.cc28
1 files changed, 14 insertions, 14 deletions
diff --git a/client/mainwindow.cc b/client/mainwindow.cc
index 30be707..492d601 100644
--- a/client/mainwindow.cc
+++ b/client/mainwindow.cc
@@ -177,13 +177,13 @@ void MainWindow::closeDiscard()
}
MessageBox::StandardButton res =
- MessageBox::question(this,
- tr("Discard"),
- tr("This session will <strong>NOT</strong> be "
- "stored in the journal.<br/>"
- "Are you sure you want to continue?"),
- MessageBox::Yes | MessageBox::No);
-
+ MessageBox::critical(this,
+ tr("Discard"),
+ tr("This session will <strong>NOT</strong> be "
+ "stored in the journal.<br/>"
+ "Are you sure you want to continue?"),
+ MessageBox::Yes | MessageBox::No);
+
if(res == MessageBox::Yes) {
netcom.discard();
isStored = true;
@@ -199,13 +199,13 @@ void MainWindow::closeEvent(QCloseEvent *event)
return;
}
- if(isStored || MessageBox::question(this,
- tr("Discard"),
- tr("This session will "
- "<strong>NOT</strong> be stored in "
- "the journal.<br/>"
- "Are you sure you want to continue?"),
- MessageBox::Yes | MessageBox::No)
+ if(isStored || MessageBox::critical(this,
+ tr("Discard"),
+ tr("This session will "
+ "<strong>NOT</strong> be stored in "
+ "the journal.<br/>"
+ "Are you sure you want to continue?"),
+ MessageBox::Yes | MessageBox::No)
== MessageBox::Yes) {
if(!isStored) {
netcom.discard();