[vlc-commits] Qt: PLSelector: Answer to a binary question can't be OK

Francois Cartegnie git at videolan.org
Fri Aug 24 22:00:40 CEST 2012


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Fri Aug 24 21:35:11 2012 +0200| [bfcf87feeb0c9786d041a11959c97db9dbb31c19] | committer: Francois Cartegnie

Qt: PLSelector: Answer to a binary question can't be OK

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

 modules/gui/qt4/components/playlist/selector.cpp |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/modules/gui/qt4/components/playlist/selector.cpp b/modules/gui/qt4/components/playlist/selector.cpp
index b207b07..e05e8e9 100644
--- a/modules/gui/qt4/components/playlist/selector.cpp
+++ b/modules/gui/qt4/components/playlist/selector.cpp
@@ -517,9 +517,9 @@ void PLSelector::podcastRemove( PLSelItem* item )
     question = question.arg( item->text() );
     QMessageBox::StandardButton res =
         QMessageBox::question( this, qtr( "Unsubscribe" ), question,
-                               QMessageBox::Ok | QMessageBox::Cancel,
-                               QMessageBox::Cancel );
-    if( res == QMessageBox::Cancel ) return;
+                               QMessageBox::Yes | QMessageBox::No,
+                               QMessageBox::No );
+    if( res == QMessageBox::No ) return;
 
     input_item_t *input = item->treeItem()->data( 0, IN_ITEM_ROLE ).value<input_item_t*>();
     if( !input ) return;



More information about the vlc-commits mailing list