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

List:       kde-commits
Subject:    KDE/kdeedu/marble/src
From:       Dennis Nienhüser <earthwings () gentoo ! org>
Date:       2010-12-24 11:33:21
Message-ID: 20101224113321.AEFDDAC879 () svn ! kde ! org
[Download RAW message or body]

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();
     }
 }


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

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