Merge branch 'scripting_plugin_crash' into 'master'

Fix crash in scripting plugin on reshow

closes #56

See merge request !111
9 jobs for master in 78 minutes and 22 seconds (queued for 1 second)
Status Job ID Name Coverage
  Test
passed clang-c++11-Qt4 #6139
Linux MultiThreads

00:07:11

passed clang-c++11-Qt5 #6143
Linux MultiThreads

00:08:56

passed clang-c++98-Qt4 #6141
Linux MultiThreads

00:06:01

passed clang-c++98-Qt5 #6145
Linux MultiThreads

00:07:25

passed cppcheck #6146
Linux MultiThreads

00:34:47

passed gcc-c++11-Qt4 #6138
Linux

00:04:09

passed gcc-c++11-Qt5 #6142
Linux

00:03:56

passed gcc-c++98-Qt4 #6140
Linux

00:02:38

passed gcc-c++98-Qt5 #6144
Linux

00:03:15