[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdenetwork/ksirc
From: Laurent Montel <montel () kde ! org>
Date: 2003-09-27 13:09:25
[Download RAW message or body]
CVS commit by mlaurent:
Add a kmessagebox to warning that we will close channel.
M +6 -0 mditoplevel.cpp 1.34
--- kdenetwork/ksirc/mditoplevel.cpp #1.33:1.34
@@ -6,4 +6,6 @@
#include <kconfig.h>
#include <kdebug.h>
+#include <kmessagebox.h>
+#include <klocale.h>
#include "mditoplevel.h"
@@ -120,4 +122,8 @@ void MDITopLevel::previous()
void MDITopLevel::closeEvent( QCloseEvent *ev )
{
+ if( KMessageBox::warningYesNo( this, i18n( "Are you sure you want to quit?" ),
+ i18n("Really Quit?"),
+ i18n("&Quit"), i18n("&Cancel") )== KMessageBox::No )
+ return;
m_closing = true;
// Don't use iterators on a list while deleting elements
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic