GTK: fix various glitches when opening tabs

This commit is contained in:
2016-06-01 23:24:00 +02:00
parent d14caf5269
commit 89b231a2c9
4 changed files with 44 additions and 8 deletions

View File

@@ -502,6 +502,17 @@ handleDT p
= handleIOError $ \e -> return $ Failed p e
-- |Carries out the action. If the action returns a file
-- with a failed constructor, rethrows the IOError within.
-- Otherwise, returns the file unchanged.
rethrowFailed :: IO (File a) -> IO (File a)
rethrowFailed a = do
file <- a
case file of
(Failed _ e) -> ioError e
_ -> return file
---- SYMLINK HELPERS: ----