From 526db2cbb7df4dd1ebeb3030b392f1df7b8480e8 Mon Sep 17 00:00:00 2001 From: Julian Ospald Date: Mon, 2 May 2016 22:13:33 +0200 Subject: [PATCH] GTK: fix opening symlinks that point to directories --- src/HSFM/GUI/Gtk/MyView.hs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/HSFM/GUI/Gtk/MyView.hs b/src/HSFM/GUI/Gtk/MyView.hs index 2c4857f..fdab781 100644 --- a/src/HSFM/GUI/Gtk/MyView.hs +++ b/src/HSFM/GUI/Gtk/MyView.hs @@ -314,7 +314,9 @@ refreshView' :: MyGUI -> MyView -> Item -> IO () -refreshView' mygui myview item@(DirOrSym _) = do +refreshView' mygui myview SymLink { sdest = d@Dir{} } = + refreshView' mygui myview d +refreshView' mygui myview item@Dir{} = do newRawModel <- fileListStore item myview writeTVarIO (rawModel myview) newRawModel