]> git.sesse.net Git - vlc/blobdiff - modules/gui/qt4/dialogs/bookmarks.hpp
Rework a bit the OpenDialog calls in order to fix the double-click issue when transco...
[vlc] / modules / gui / qt4 / dialogs / bookmarks.hpp
index e8a168a3d7d082aacccfda0cf98a00cf5d3bd669..cbe2426cb1209ff9af8b31683d5888a69620330a 100644 (file)
@@ -2,7 +2,7 @@
  * bookmarks.hpp : bookmarks
  ****************************************************************************
  * Copyright (C) 2006 the VideoLAN team
- * $Id: extended.hpp 23338 2007-11-26 08:10:01Z jb $
+ * $Id$
  *
  * Authors: Antoine Lejeune <phytos@via.ecp.fr>
  *
@@ -40,8 +40,12 @@ public:
             instance = new BookmarksDialog( p_intf );
         return instance;
     }
+    static void killInstance()
+    {
+        if( instance ) delete instance;
+        instance = NULL;
+    }
     virtual ~BookmarksDialog();
-    static bool exists() { return ( instance != NULL ) ; }
 private:
     BookmarksDialog( intf_thread_t * );
     static BookmarksDialog *instance;