GTK: fix opening non-readable directory as tab
This commit is contained in:
parent
3e4621fe70
commit
e4bb5104e8
@ -108,11 +108,11 @@ newTab mygui iofmv item pos = do
|
|||||||
notebookSetTabReorderable (notebook mygui) (viewBox myview) True
|
notebookSetTabReorderable (notebook mygui) (viewBox myview) True
|
||||||
|
|
||||||
catchIOError (refreshView mygui myview item) $ \e -> do
|
catchIOError (refreshView mygui myview item) $ \e -> do
|
||||||
unless (isUserError e) (ioError e)
|
|
||||||
file <- readFile getFileInfo . fromJust . P.parseAbs . fromString
|
file <- readFile getFileInfo . fromJust . P.parseAbs . fromString
|
||||||
$ "/"
|
$ "/"
|
||||||
refreshView mygui myview file
|
refreshView mygui myview file
|
||||||
labelSetText label (fromString "/" :: String)
|
labelSetText label (fromString "/" :: String)
|
||||||
|
unless (isUserError e) (ioError e)
|
||||||
|
|
||||||
-- close callback
|
-- close callback
|
||||||
_ <- ebox `on` buttonPressEvent $ do
|
_ <- ebox `on` buttonPressEvent $ do
|
||||||
|
Loading…
Reference in New Issue
Block a user