diff options
Diffstat (limited to 'src/progs/ingenuity/DSSIModule.cpp')
-rw-r--r-- | src/progs/ingenuity/DSSIModule.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/progs/ingenuity/DSSIModule.cpp b/src/progs/ingenuity/DSSIModule.cpp index ebcd114c..3d91e69b 100644 --- a/src/progs/ingenuity/DSSIModule.cpp +++ b/src/progs/ingenuity/DSSIModule.cpp @@ -29,8 +29,8 @@ DSSIModule::DSSIModule(OmFlowCanvas* canvas, DSSIController* node) void DSSIModule::on_double_click(GdkEventButton* ev) { - DSSIController* const dc = static_cast<DSSIController*>(m_node); - if (!dc->attempt_to_show_gui()) + DSSIController* dc = dynamic_cast<DSSIController*>(m_node); + if (!dc || ! dc->attempt_to_show_gui()) show_control_window(); } |