[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-15 22:21:12
Message-ID: 20101215222112.1F8E1AC8A8 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1206794 by nienhueser:

Ask for confirmation before removing all bookmarks.
Contains one new string (same string in marble_qt.po and marble.po), acked in \
                http://lists.kde.org/?t=129236639300002&r=1&w=2, thanks.
BUG: 259655
RB: 6122
CCMAIL: kde-i18n-doc@kde.org

 M  +5 -0      QtMainWindow.cpp  
 M  +4 -0      marble_part.cpp  


--- trunk/KDE/kdeedu/marble/src/QtMainWindow.cpp #1206793:1206794
@@ -514,8 +514,13 @@
 
 void MainWindow::removeAllBookmarks()
 {
+    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 ) {  m_controlView->marbleWidget()->removeAllBookmarks();
 }
+}
 
 void MainWindow::openNewBookmarkFolderDialog()
 {
--- trunk/KDE/kdeedu/marble/src/marble_part.cpp #1206793:1206794
@@ -1559,8 +1559,12 @@
 
 void MarblePart::removeAllBookmarks()
 {
+    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 ) {  m_controlView->marbleWidget()->removeAllBookmarks();
 }
+}
 
 void MarblePart::openNewBookmarkFolderDialog()
 {


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

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