[Marble-commits] KDE/kdeedu/marble/src
Dennis Nienhüser
earthwings at gentoo.org
Wed Dec 15 23:21:12 CET 2010
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 at 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()
{
More information about the Marble-commits
mailing list