[vlc-commits] commit: qt4: connect accepted/rejected from correct widget (Ilkka Ollakka )

git at videolan.org git at videolan.org
Fri Apr 30 11:46:43 CEST 2010


vlc/vlc-1.1 | branch: master | Ilkka Ollakka <ileoo at videolan.org> | Fri Apr 30 11:00:14 2010 +0300| [1902837705426d5a685f4003f496ba93156fe0ed] | committer: Ilkka Ollakka 

qt4: connect accepted/rejected from correct widget
(cherry picked from commit f28654607fe90415c233bd7cf08f3a5c4493b8d6)

Signed-off-by: Ilkka Ollakka <ileoo at iki.fi>

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

 modules/gui/qt4/dialogs/external.cpp |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/gui/qt4/dialogs/external.cpp b/modules/gui/qt4/dialogs/external.cpp
index 3798815..f51645d 100644
--- a/modules/gui/qt4/dialogs/external.cpp
+++ b/modules/gui/qt4/dialogs/external.cpp
@@ -134,8 +134,8 @@ void DialogHandler::requestLogin (vlc_object_t *, void *value)
     buttonBox->addButton( okButton, QDialogButtonBox::AcceptRole );
     buttonBox->addButton( cancelButton, QDialogButtonBox::RejectRole );
 
-    CONNECT( okButton, accepted(), dialog, accept() );
-    CONNECT( cancelButton, rejected(), dialog, reject() );
+    CONNECT( buttonBox, accepted(), dialog, accept() );
+    CONNECT( buttonBox, rejected(), dialog, reject() );
     layout->addWidget (buttonBox);
 
     /* Run the dialog */



More information about the vlc-commits mailing list