[vlc-devel] commit: Add a parent to avoid leaking the QVLCframe and input_items ( Jean-Philippe Andre )
git version control
git at videolan.org
Fri Sep 12 07:23:25 CEST 2008
vlc | branch: master | Jean-Philippe Andre <jpeg at via.ecp.fr> | Fri Sep 12 00:53:57 2008 -0400| [f99c3dbd2a2e8028dafb603db7661239873fa758] | committer: Jean-Philippe Andre
Add a parent to avoid leaking the QVLCframe and input_items
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f99c3dbd2a2e8028dafb603db7661239873fa758
---
.../gui/qt4/components/playlist/playlist_model.cpp | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/modules/gui/qt4/components/playlist/playlist_model.cpp b/modules/gui/qt4/components/playlist/playlist_model.cpp
index f09a4a7..8edada7 100644
--- a/modules/gui/qt4/components/playlist/playlist_model.cpp
+++ b/modules/gui/qt4/components/playlist/playlist_model.cpp
@@ -29,6 +29,7 @@
#include "dialogs_provider.hpp"
#include "components/playlist/playlist_model.hpp"
#include "dialogs/mediainfo.hpp"
+#include "dialogs/playlist.hpp"
#include <vlc_intf_strings.h>
#include "pixmaps/types/type_unknown.xpm"
@@ -899,6 +900,8 @@ void PLModel::popupInfo()
if( p_item )
{
MediaInfoDialog *mid = new MediaInfoDialog( p_intf, p_item->p_input );
+ mid->setParent( PlaylistDialog::getInstance( p_intf ),
+ Qt::Dialog );
mid->show();
}
}
More information about the vlc-devel
mailing list