summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/ui/dialog/dialog.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/ui/dialog/dialog.cpp b/src/ui/dialog/dialog.cpp
index aa48f7eb8..b4e491bf9 100644
--- a/src/ui/dialog/dialog.cpp
+++ b/src/ui/dialog/dialog.cpp
@@ -15,6 +15,7 @@
# include <config.h>
#endif
+#include <typeinfo>
#include <gtkmm/stock.h>
#include <gtk/gtk.h>
@@ -111,12 +112,20 @@ Dialog::read_geometry()
void hideCallback(GtkObject *object, gpointer dlgPtr)
{
+ Dialog* example;
+ if ((void*)dlgPtr == 0 || typeid(dlgPtr) != typeid(example))
+ return;
+
Dialog *dlg = (Dialog *)dlgPtr;
dlg->onHideF12();
}
void unhideCallback(GtkObject *object, gpointer dlgPtr)
{
+ Dialog* example;
+ if ((void*)dlgPtr == 0 || typeid(dlgPtr) != typeid(example))
+ return;
+
Dialog *dlg = (Dialog *)dlgPtr;
dlg->onShowF12();
}