From 6e295edf538c29aac938aed825f1596669648ab8 Mon Sep 17 00:00:00 2001 From: senator Date: Mon, 28 Mar 2011 12:33:24 +0000 Subject: changed questio to critical in close messagebox --- client/mainwindow.cc | 28 ++++++++++++++-------------- 1 file 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 NOT be " - "stored in the journal.
" - "Are you sure you want to continue?"), - MessageBox::Yes | MessageBox::No); - + MessageBox::critical(this, + tr("Discard"), + tr("This session will NOT be " + "stored in the journal.
" + "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 " - "NOT be stored in " - "the journal.
" - "Are you sure you want to continue?"), - MessageBox::Yes | MessageBox::No) + if(isStored || MessageBox::critical(this, + tr("Discard"), + tr("This session will " + "NOT be stored in " + "the journal.
" + "Are you sure you want to continue?"), + MessageBox::Yes | MessageBox::No) == MessageBox::Yes) { if(!isStored) { netcom.discard(); -- cgit v1.2.3