Fix drawing area when other windows overlap

This commit is contained in:
2014-10-02 20:57:49 +02:00
parent 0ab6a15d4e
commit e14805dcce

4
Gtk.hs
View File

@@ -79,7 +79,11 @@ onClickedDrawButton fcb da scale' = do
filename <- fileChooserGetFilename fcb
case filename of
Just x -> do
cId <- onExpose da (\x' -> do
drawDiag' x da scale'
return True)
drawDiag' x da scale'
_ <- on fcb fileActivated (signalDisconnect cId)
Nothing -> do
showErrorDialog "No valid Mesh file!"