[Marble-commits] KDE/kdeedu/marble/src

Dennis Nienhüser earthwings at gentoo.org
Fri Dec 24 12:33:21 CET 2010


SVN commit 1209050 by nienhueser:

Remove the Cancel button in the yes/no question.
CCBUG: 261125

 M  +2 -2      QtMainWindow.cpp  
 M  +1 -1      marble_part.cpp  


--- trunk/KDE/kdeedu/marble/src/QtMainWindow.cpp #1209049:1209050
@@ -516,8 +516,8 @@
 {
     QString const title = tr( "Marble" );
     QString const text = tr( "Are you sure you want to delete all bookmarks?" );
-    QMessageBox::StandardButtons const buttons = QMessageBox::Yes | QMessageBox::No | QMessageBox::Cancel;
-    if ( QMessageBox::question( m_controlView->marbleWidget(), title, text, buttons, QMessageBox::Cancel ) == QMessageBox::Yes ) {
+    QMessageBox::StandardButtons const buttons = QMessageBox::Yes | QMessageBox::No;
+    if ( QMessageBox::question( m_controlView->marbleWidget(), title, text, buttons, QMessageBox::No ) == QMessageBox::Yes ) {
         m_controlView->marbleWidget()->removeAllBookmarks();
     }
 }
--- trunk/KDE/kdeedu/marble/src/marble_part.cpp #1209049:1209050
@@ -1561,7 +1561,7 @@
 {
     QString const title = i18nc( "Application name", "Marble" );
     QString const text = i18n( "Are you sure you want to delete all bookmarks?" );
-    if ( KMessageBox::questionYesNoCancel( widget(), text, title ) == KMessageBox::Yes ) {
+    if ( KMessageBox::questionYesNo( widget(), text, title ) == KMessageBox::Yes ) {
         m_controlView->marbleWidget()->removeAllBookmarks();
     }
 }


More information about the Marble-commits mailing list