[vlc-devel] commit: Change the message shown by the update dialog: fix #1788. ( Rémi Duraffort )

git version control git at videolan.org
Tue Jul 29 19:05:20 CEST 2008


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Tue Jul 29 19:07:10 2008 +0200| [72e40270e69b40b5d23541b83859210e4e5242ce]

Change the message shown by the update dialog: fix #1788.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=72e40270e69b40b5d23541b83859210e4e5242ce
---

 modules/gui/qt4/dialogs/help.cpp |   11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/modules/gui/qt4/dialogs/help.cpp b/modules/gui/qt4/dialogs/help.cpp
index d599947..809d46f 100644
--- a/modules/gui/qt4/dialogs/help.cpp
+++ b/modules/gui/qt4/dialogs/help.cpp
@@ -295,8 +295,15 @@ void UpdateDialog::updateNotify( bool b_result )
             assert( p_release );
             b_checked = true;
             updateButton->setText( "Ok" );
-            updateLabel->setText( qtr( "There is a new version of VLC :\n" )
-                                + qfu( p_release->psz_desc )  );
+            QString message = qtr( "A new version of VLC(" )
+                              + QString::number( p_release->i_major ) + "."
+                              + QString::number( p_release->i_minor ) + "."
+                              + QString::number( p_release->i_revision );
+            if( p_release->extra )
+                message += p_release->extra;
+            message += qtr( ") is available.\nDo you want to download it?\n" ) + qfu( p_release->psz_desc );
+
+            updateLabel->setText( message );
 
             /* Force the dialog to be shown */
             this->show();




More information about the vlc-devel mailing list