[vlc-devel] [RFC PATCH 1/7] qt: Add a way to test breakpad

Hugo Beauzée-Luyssen hugo at beauzee.fr
Wed Dec 20 11:34:35 CET 2017


---
 modules/gui/qt/dialogs_provider.cpp | 6 ++++++
 modules/gui/qt/dialogs_provider.hpp | 2 ++
 modules/gui/qt/menus.cpp            | 3 +++
 3 files changed, 11 insertions(+)

diff --git a/modules/gui/qt/dialogs_provider.cpp b/modules/gui/qt/dialogs_provider.cpp
index edf42665aa..0c418d078a 100644
--- a/modules/gui/qt/dialogs_provider.cpp
+++ b/modules/gui/qt/dialogs_provider.cpp
@@ -528,6 +528,12 @@ void DialogsProvider::simpleOpenDialog()
     addFromSimple( true, true ); /* Playlist and Go */
 }
 
+void DialogsProvider::testBreakpad()
+{
+    int* foo = NULL;
+    *foo = 0xDEADBEEF;
+}
+
 /* Url & Clipboard */
 /**
  * Open a MRL.
diff --git a/modules/gui/qt/dialogs_provider.hpp b/modules/gui/qt/dialogs_provider.hpp
index 4d65c7a599..013b0b8796 100644
--- a/modules/gui/qt/dialogs_provider.hpp
+++ b/modules/gui/qt/dialogs_provider.hpp
@@ -155,6 +155,8 @@ public slots:
 
     void simpleOpenDialog();
 
+    void testBreakpad();
+
     void openDialog();
     void openDiscDialog();
     void openFileDialog();
diff --git a/modules/gui/qt/menus.cpp b/modules/gui/qt/menus.cpp
index ede795a55c..0cb47a7032 100644
--- a/modules/gui/qt/menus.cpp
+++ b/modules/gui/qt/menus.cpp
@@ -402,6 +402,9 @@ QMenu *VLCMenuBar::FileMenu( intf_thread_t *p_intf, QWidget *parent, MainInterfa
 
     addDPStaticEntry( menu, qtr( "&Quit" ) ,
         ":/menu/exit.svg", SLOT( quit() ), "Ctrl+Q" );
+
+    addDPStaticEntry( menu, qtr( "Test breakpad" ),
+        ":/menu/exit.svg", SLOT( testBreakpad() ) );
     return menu;
 }
 
-- 
2.11.0



More information about the vlc-devel mailing list