[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdepim/korganizer
From:       Aurélien Gâteau <agateau () kde ! org>
Date:       2010-12-05 22:01:48
Message-ID: 20101205220148.43E86AC8A8 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1203999 by gateau:

Deleting a calendar is dangerous enough to be a "warning" message box

 M  +2 -2      akonadicollectionview.cpp  


--- trunk/KDE/kdepim/korganizer/akonadicollectionview.cpp #1203998:1203999
@@ -407,14 +407,14 @@
   const QString displayname = index.model()->data( index, Qt::DisplayRole ).toString();
   Q_ASSERT( !displayname.isEmpty() );
 
-  if ( KMessageBox::questionYesNo( this,
+  if ( KMessageBox::warningContinueCancel( this,
                                    i18n( "Do you really want to delete calendar %1?", displayname ),
                                    i18n( "Delete Calendar" ),
                                    KStandardGuiItem::del(),
                                    KStandardGuiItem::cancel(),
                                    QString(),
                                    KMessageBox::Dangerous )
-       == KMessageBox::Yes ) {
+       == KMessageBox::Continue ) {
 
     bool isTopLevel = collection.parentCollection() == Akonadi::Collection::root();
 
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic