diff options
Diffstat (limited to 'client')
| -rw-r--r-- | client/mainwindow.cc | 28 | 
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(); | 
