GTK: don't allow new-tab middle-click on non-directories
This commit is contained in:
parent
9549b40745
commit
d14caf5269
@ -349,8 +349,9 @@ closeTab mygui myview = do
|
||||
|
||||
|
||||
newTabHere :: MyGUI -> Item -> IO ()
|
||||
newTabHere mygui item =
|
||||
newTabHere mygui item@(DirOrSym _) =
|
||||
void $ newTab mygui createTreeView (path item)
|
||||
newTabHere _ _ = return ()
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user